Commit 7e822003 by BellCodeEditor

auto save

parent eef808f2
Showing with 7 additions and 4 deletions
with open(r"C:\Users\Administrator\Desktop\新建文本文档.txt","a",encoding="utf-8") as file: sum=0
file.write("车亿鸣:100本\n") for i in range(1,101):
file.write("付晨序:1000本\n") if i%2!=0:
\ No newline at end of file sum=sum+i
else:
sum=sum-i
print(sum)
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