Tkinter图形界面设计见:https://www.cnblogs.com/pywjh/p/9527828.html#radiobutton 终止python运行函数: 采用sys.exit(0)正常终止程序 python读写文件(python3.0读写二进制文件后面一定要加b,否则会报错"write() argument must be str, not bytes",例如:ab,a+b): #读写二进制文件,例如mp3.mp4 film = requests.get(self.v
import os import pandas as pd from sklearn import linear_model path = r'D:\新数据\每日收益率' filenames = os.listdir(path) for filename in filenames: print(filename) for i in filenames: excel_path = 'D:\新数据\每日收益率\\' + i f = open(excel_path,'rb') data = pd.re