python 操作 excel

选择文件路径

import tkinter as tk
from tkinter import filedialog

root = tk.Tk()
root.withdraw()

file_path = filedialog.askopenfilename()
print(file_path)

 

posted @ 2020-04-19 16:51  北ღ冥  阅读(126)  评论(0编辑  收藏  举报