Commit 542e8baf by BellCodeEditor

save project

parent 665316f9
Showing with 8 additions and 2 deletions
with open(r'C:\Users\admin\Desktop\book.txt',"a",encoding="utf-8") as file: with open(r'C:\Users\admin\Desktop\book.txt',"r",encoding="utf-8") as file:
file.write('小强:11本\n李明:8本\n') for data in file:
if "小兰:12本" in data:
print("在")
if "小强:10本" in data:
print("在")
# file.write('小强:11本\n李明:8本\n')
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