Commit f5e6af8f by BellCodeEditor

save project

parent 893e2afa
Showing with 6 additions and 2 deletions
file=open('C:\\Users\\admin\\Desktop\\test.txt','w',encoding='utf-8') file=open('C:\\Users\\admin\\Desktop\\test.txt','w',encoding='utf-8')
file.write('小兰是狗 12\n小丽是狗 11\n') file.write('小兰是狗 12\n小丽是狗 11\n')
file.close() file.close()
\ No newline at end of file with open('C:\\Users\\admin\\Desktop\\test.txt','w',encoding='utf-8') as
file:
file.write(悟空最狗 0\n)
\ 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