Commit c628af10 by BellCodeEditor

auto save

parent 5995de97
Showing with 4 additions and 3 deletions
bros=['关羽','刘备','张飞'] a=["123\n","456\n","789\n"]
for i in range(3): with open(r"c:\Users\XMBC\Desktop\123.txt","w",encoding="utf-8") as file:
print(bros[i]) file.writelines(a)
\ 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