Commit 3800c728 by BellCodeEditor

auto save

parent 6e720121
Showing with 15 additions and 9 deletions
total = [] def new_inpout():
while True: h=0
unit= input("请输入:") total = []
if unit== 'q': while True:
break unit= input("请输入(p退出):")
else: if unit== 'p':
total.append(unit) break
print(total) else:
\ No newline at end of file total.append(unit)
for i in total:
h+=int(i)
print(total)
print(h)
new_inpout()
\ 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