Commit bf738150 by BellCodeEditor

save project

parent 0aa7ceb3
Showing with 5 additions and 1 deletions
......@@ -3,4 +3,7 @@ file=open(r"C:\Users\admin\Desktop\test.txt","w",encoding="utf-8")
file.write('张伟:16本')
file.close()
with open(r"C:\Users\admin\Desktop\test.txt","a",encoding="utf-8")as file:
write("小红:12本")
file.write("贝尔编程")
with open(r"C:\Users\admin\Desktop\test.txt","r",encoding="utf-8")as file:
a=file.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