Commit 278fec1b by BellCodeEditor

save project

parent 9c6f7ad1
Showing with 3 additions and 4 deletions
...@@ -3,7 +3,5 @@ ...@@ -3,7 +3,5 @@
# txt.write("小兰:12本\n小丽:11本\n李文:9本\n张伟:16本") # txt.write("小兰:12本\n小丽:11本\n李文:9本\n张伟:16本")
# txt.write("\nxm:37") # txt.write("\nxm:37")
# txt.close() # txt.close()
with open(r'C:\Users\Administrator\Desktop\txt.txt','r',encoding='UTF_8') as tet: with open(r'C:\Users\Administrator\Desktop\txt.txt','a',encoding='UTF_8') as tet:
for i in tet: tet.write("\nllm:23")
if "李文:9本" in i: \ No newline at end of file
print("zzzz")
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