1
0
Fork 0
Bug499-WangZiming
王梓铭 2022-11-22 20:57:29 +08:00
parent c14de06c86
commit cff0ce32b2
1 changed files with 8 additions and 7 deletions

View File

@ -38,10 +38,11 @@ class FileOpen:
if __name__ == "__main__":
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)
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)