Commit 60309c26 by BellCodeEditor

save project

parent 300919fa
Showing with 2 additions and 2 deletions
...@@ -8,9 +8,9 @@ with open(r'C:\Users\ASUS\Desktop\test\open.txt','a',encoding='utf-8') as file1: ...@@ -8,9 +8,9 @@ with open(r'C:\Users\ASUS\Desktop\test\open.txt','a',encoding='utf-8') as file1:
with open(r'C:\Users\ASUS\Desktop\test\open.txt','r',encoding='utf-8') as file1: with open(r'C:\Users\ASUS\Desktop\test\open.txt','r',encoding='utf-8') as file1:
for data in file1: for data in file1:
if'小兰:捐了12本'in data: if'小兰:捐了12本'in data:
print('') print('zhen')
if'小丽:捐了11本'in data: if'小丽:捐了11本'in data:
print('真') print("assh")
with open(r'C:\Users\ASUS\Desktop\test\open.txt','r',encoding='utf-8') as file1: with open(r'C:\Users\ASUS\Desktop\test\open.txt','r',encoding='utf-8') as file1:
file1.write(new_data) file1.write(new_data)
......
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