📜  python tkinter askopenfile - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.678000             🧑  作者: Mango

代码示例1
file = askopenfile(mode ='r', filetypes =[('Python Files', '*.py'), ('Text Files', '*.txt')]) 

if file is not None: 
    content = file.read() 
    print(content)
file.close()