Commit 32b4a842 by BellCodeEditor

save project

parent 28050a40
Showing with 7 additions and 5 deletions
f=open(r'C:\Users\PALADE\Desktop\test.txt',"a",encoding="utf-8") #f=open(r'C:\Users\PALADE\Desktop\test.txt',"a",encoding="utf-8")
f.write("小明:12本") for i in range:
if file:
f.close() with open(r'C:\Users\PALADE\Desktop\test.txt',"r",encoding="utf-8")as f:
\ No newline at end of file a=f.read()
print(a)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment