Commit 9d3c872c by BellCodeEditor

save project

parent 8edc04ee
Showing with 8 additions and 0 deletions
a=['你好\n','悟空\n','我在学python\n']
with open(r'c:\Users\Administrator\Documents\lesson13-4\hello.txt','a',encoding='utf-8')as file:
file.writelines(a)
\ No newline at end of file
你好
悟空
我在学python
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