Commit 0d047d8e by BellCodeEditor

save project

parent 6db4bc6c
Showing with 12 additions and 4 deletions
file = open(r"C:\Users\玛酷2\Desktop\text.txt","a",encoding="utf-8")
file.write("小强:10本\n")
file.write("小明:15本\n")
file.close()
#file = open(r"C:\Users\玛酷2\Desktop\text.txt","r",encoding="utf-8")
#file.write("小强:10本\n")
#file.write("小明:15本\n")
#file.close()
with open(r"C:\Users\玛酷2\Desktop\text.txt","r",encoding="utf-8")
for date in file:
if "小强:10本" in date
print()
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