Commit f0b22518 by BellCodeEditor

save project

parent 28c03a5a
Showing with 9 additions and 0 deletions
......@@ -8,4 +8,12 @@ with open(r'C:\Users\makcoo\Desktop\墨有余温.权威.txt',"a",encoding='utf-8
file.write('李文:9本\n')
file=open(r'C:\Users\makcoo\Desktop\墨有余温.权威.txt',"a",encoding='utf-8')
file.write('张伟:16本')
file.close()
file=open(r'C:\Users\makcoo\Desktop\墨有余温.权威.txt',"r",encoding='utf-8')
for i in file:
if "张伟" in i:
print("在")
file=open(r'C:\Users\makcoo\Desktop\墨有余温.权威.txt',"r",encoding='utf-8')
a=file.read()
print(a)
file.close()
\ 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