Commit 6bb9a331 by BellCodeEditor

save project

parent 4030a2b9
Showing with 1 additions and 1 deletions
with open(r"C:\Users\win10\Desktop\1.txt",'a',encoding='utf-8')as f:
f.write('\n小伟:10本\n')
with open(r"C:\Users\win10\Desktop\1.txt",'r',encoding='utf-8')as f:
if '小强:10本' in ff:
if '小强:10本' in f:
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