import bs_inferencedef test(): stock_data = bs_inference.download('AAPL') print(stock_data)if name == 'main': test()
用python写1个测试代码:test.py。通过 import bs_inference来导入之前的download函数,从而获取到对应股票的数据...
该代码段演示了如何利用bs_inference库下载AAPL公司的股票数据,并在主程序中进行打印展示。
摘要由CSDN通过智能技术生成