Commit 86597740 by BellCodeEditor

save project

parent 2dd9e91a
Showing with 3 additions and 5 deletions
with open(r'C:\Users\玛酷机器人\Desktop\book.txt','r',encoding='utf-8')as file:
for i in file:
if '小兰:12本' in i:
print("在")
\ No newline at end of file
with open(r'C:\Users\玛酷机器人\Desktop\book.txt','a',encoding='utf-8')as file:
file.write('小兰:12本\n')
\ 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