瀏覽代碼

test tkinter

罗俊辉 1 年之前
父節點
當前提交
43d83742d1
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      test.py

+ 9 - 0
test.py

@@ -0,0 +1,9 @@
+import tkinter.filedialog
+
+path = tkinter.filedialog.askopenfilename()
+
+if path:
+    with open(path, 'r') as f:
+        print(f.read())
+else:
+    print("No good")