关于os.chdir(path)位置对程序的影响,import os import time#直接把path放到open()里面 def fu0(): star = time.time() for i in range(100): p = os.listdir('E:/pythontxt/PDF文字提取/') for each in p: with open('E:/pythontxt/PDF文字提取/'+each,'rb') as o: o.readline() print('完成') end…
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…