记录一些杂七杂八但是经常用到的技巧
GUI读取文件路径
GUI
import tkinter as tk from tkinter import filedialog def getLocalFile(): root = tk.Tk() root.withdraw() filePath = filedialog.askopenfilename() print('文件路径:', filePath) return filePath