From 348c37032b320a99ae46e23c0478ccc1f6f0a399 Mon Sep 17 00:00:00 2001 From: torch <178428409@qq.com> Date: Tue, 22 Nov 2022 21:26:06 +0800 Subject: [PATCH] test --- app/file_open.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/file_open.py b/app/file_open.py index 1a2345a..b726ed5 100644 --- a/app/file_open.py +++ b/app/file_open.py @@ -38,11 +38,10 @@ class FileOpen: if __name__ == "__main__": - pass - # wf = FileOpen.write_able(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt") - # wf.write("asdasdasd") - # wf.close() - # - # rf = FileOpen.read_only(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt") - # for line in rf.readlines(): - # print(line) \ No newline at end of file + wf = FileOpen.write_able(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt") + wf.write("asdasdasd") + wf.close() + + rf = FileOpen.read_only(r"D:\Workspace\gitcode\EnglishPal\app\static\test.txt") + for line in rf.readlines(): + print(line) \ No newline at end of file