tkinter一句话打开文件夹选择文件
摘要:#tkinter一句话打开文件夹选择文件from tkinter import filedialog file = filedialog.askopenfilename(initialdir=os.getcwd()) #打开默认文件夹选择文件 print(file)
阅读全文
header格式化
摘要:从火狐浏览器上每次复制header字符串修改成字典类型比较麻烦,所以写个代码,不用每次都花时间修改cookie字符串。
阅读全文
pyttsx3将文字转语音
摘要:import pyttsx3 engine = pyttsx3.init() engine.say("你好"); engine.setProperty('volume',0.9) engine.runAndWait()
阅读全文
posted @
2018-04-11 00:36
math98
阅读(172)
推荐(0) 编辑