记录一些杂七杂八但是经常用到的技巧

python代码块

  • GUI读取文件路径

    import tkinter as tk
    from tkinter import filedialog
    def getLocalFile():
        root = tk.Tk()
        root.withdraw()
        filePath = filedialog.askopenfilename()
        print('文件路径:', filePath)
        return filePath
    
Copyright © Euclid-Jie 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-08-09 05:34:52

results matching ""

    No results matching ""