Commit e9a2f4d0 by BellCodeEditor

save project

parent 6402d943
Showing with 1 additions and 1 deletions
......@@ -2,7 +2,7 @@
file1= open(r'C:\Users\lenovo\Desktop\fuck.txt','w',encoding='utf-8')
file1.write('小兰:12本\n')
file1.close()
with open(r'C:\Users\lenovo\Desktop\fuck.txt','a',encoding='utf-8') as file1:
with open(r'C:\Users\lenovo\Desktop\fuck.txt','r'',encoding='utf-8') as file1:
for data in file1:
if '小强:10' in data:
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