摘要: +In 'Python'+'Quant'Out 'PythonQuant' *In 'Python'*3Out 'PythonPythonPython' %In '%s,很棒!'%(‘python’)Out 'python,很棒!' 阅读全文
posted @ 2021-02-17 13:22 我的博客2021 阅读(44) 评论(0) 推荐(0)
摘要: 列表 list L0=[1,2,3] L1=['Stock A','Stock B','Stock C'] L2=[10,'Price',['Industry 1','Industry 2']] 元祖 M=('Market',3.0,[10,20,30]) 字典 d1={'Stock A':30,' 阅读全文
posted @ 2021-02-17 12:55 我的博客2021 阅读(72) 评论(0) 推荐(0)
摘要: import baostock as bsimport pandas as pd#### 登陆系统 ####lg = bs.login()# 显示登陆返回信息print('login respond error_code:'+lg.error_code)print('login respond er 阅读全文
posted @ 2021-02-16 11:04 我的博客2021 阅读(229) 评论(0) 推荐(0)
摘要: tenIntenger=[i for i in range(11)] #0-10print(tenIntenger)for i in tenIntenger: if i%2==0: print(i)for i in range(1,5) #1-5 阅读全文
posted @ 2021-02-16 11:02 我的博客2021 阅读(34) 评论(0) 推荐(0)
摘要: 下载Anaconda 登陆www.baostock.com 按装baostock pip install baostock -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn 如果 阅读全文
posted @ 2021-02-16 11:01 我的博客2021 阅读(79) 评论(0) 推荐(0)