PYTHON笔记十二:通过yfinance获取股票信息并写入EXCEL文件中
1234567891011121314151617181920212223242526272829303132333435363738import requestsimport pandas as pdimport yfinance as yfimport time as tmurl = 'https://www.slickcharts.com/sp500'headers = {"User-Agent" : 'Mozilla/5.0 (Windows NT 10.0; Win64; x
...