Commit 809b15fa by BellCodeEditor

save project

parent 5c2ec9a0
Showing with 10 additions and 5 deletions
with open(r'C:\Users\huiyu\Desktop\阿巴巴:阿巴巴:阿巴巴:.txt','a',encoding='utf-8')as file1:
file1.write('我:100\n')
file1.write('小强:10\n')
file1.write('李明:15\n')
\ No newline at end of file
with open(r'C:\Users\huiyu\Desktop\阿巴巴:阿巴巴:阿巴巴:.txt','r',encoding='utf-8')as file1:
# file1.read('我:100\n')
# file1.read('小强:10\n')
# file1.read('李明:15\n')
for i in file1:
if "小明:100" in i:
print("1")
else:
print("2")
# qwweeeewwqwwwwwwww 54188
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