from WindPy import w
import sys
w.start() # 这个是关键
wdata = w.wsd(...)
if wdata.ErrorCode != 0: #确保wsd内参数设置没有错误
print('Wind Error Code is: ',wdata.ErrorCode)
sys.exit()
if 0 == len(wdata.Data): #确保万得返回了数据
print('Wind has no data returns')
sys.exit()
确保万得返回了数据
最新推荐文章于 2024-04-28 13:28:27 发布