소스 검색

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")