Commit 516c0252 by BellCodeEditor

save project

parent a5ded211
Showing with 13 additions and 9 deletions
# file1=open(r'C:\Users\Charles\Desktop\史家屹.txt','w',encoding='utf-8')
# file1.write('小强:11本\n')
# file1.write('小李:11本\n')
# file1.close()
# with open(r'C:\Users\Charles\Desktop\史家屹.txt','a',encoding='utf-8')as file1:
# file1.write('\n家家:66本')
file1=open(r'C:\Users\Charles\Desktop\史家屹.txt','w',encoding='utf-8')
file1.write('小强:11本\n')
file1.write('小李:11本\n')
file1.close()
with open(r'C:\Users\Charles\Desktop\史家屹.txt','a',encoding='utf-8')as file1:
file1.write('\n家家:66本')
with open(r'C:\Users\Charles\Desktop\史家屹.txt','r',encoding='utf-8')as file1:
for date in file1:
if "\n家家:66本" in date:
print("zai")
\ No newline at end of file
if "/n 有一天小明来我家做客" in date:
# "/n 有一天小明来我家做客" in date:
# "/n 有一天小明来我家做客" in date:
# "/n 有一天小明来我家做客" in date:
# "/n 有一天小明来我家做客" in date:
print("zai")
\ 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