Commit 4a5d5738 by BellCodeEditor

save project

parent 3a193348
Showing with 9 additions and 3 deletions
file1=open(r'C:\Users\8460p\Desktop\a.txt','w',encoding='utf-8') file1=open(r'C:\Users\8460p\Desktop\a.txt','a',encoding='utf-8')
file1.write("小兰:12本\n") file1.write("小兰:12本\n")
file1.close() file1.write("小静:13本\n")
\ No newline at end of file file1.close()
with open(r'C:\Users\8460p\Desktop\a.txt','r',encoding='utf-8')
for data in file1:
it "小兰:12本"in data:
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