Commit e36fb094 by BellCodeEditor

save project

parent b012a5e7
Showing with 8 additions and 4 deletions
......@@ -9,8 +9,11 @@
# with open(r'C:\Users\EDY\Desktop/1.txt','a',encoding='utf-8') as file1:
# file1.write('小强:12本\n')
# file1.write('李明:15本\n')
with open(r'C:\Users\EDY\Desktop/1.txt','r',encoding='utf-8') as file1:
a=file1.read()
print(a)
with open(r'C:\Users\EDY\Desktop/1.txt','a',encoding='utf-8') as file1:
file1.write('bell:10本\n')
with open(r'C:\Users\EDY\Desktop/1.txt','r',encoding='utf-8') as file1:
for i in file1:
if '小兰:12本'in i:
print('在')
\ 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