Commit 299644e0 by BellCodeEditor

save project

parent e290a3b0
Showing with 4 additions and 2 deletions
...@@ -3,4 +3,7 @@ ...@@ -3,4 +3,7 @@
# a.write(小丽:11本,小兰12) # a.write(小丽:11本,小兰12)
with open(r'C:\Users\LEGO\Desktop\text.txt',"a",encoding='utf-8') as file: with open(r'C:\Users\LEGO\Desktop\text.txt',"a",encoding='utf-8') as file:
file.write("小丽:11本\n") file.write("小丽:11本\n")
file.write("小兰:11本\n") file.write("小兰:11本\n")
\ No newline at end of file with open(r'C:\Users\LEGO\Desktop\text.txt',"r",encoding='utf-8') as file1:
a=file1.read()
print(a)
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