Commit a3166ed0 by BellCodeEditor

save project

parent fd5d4dac
Showing with 8 additions and 5 deletions
with open(r'C:\Users\makcoo\Desktop\text.txt','a',encoding='utf-8') as file: with open(r'C:\Users\makcoo\Desktop\text.txt','r',encoding='utf-8') as file:
file.write('学校放寒假!!!') #file.write('学校放寒假!!!')
file.write('小强') #file.write('小强')
#file.close() #file.close()
\ No newline at end of file for i in file:
if '小强' 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