Commit f259b5e6 by BellCodeEditor

auto save

parent 55560376
Showing with 11 additions and 19 deletions
def new_input(): new_iuput()
total =[] def new_iuput():
zong=0
while True: while True:
unit=input("请;") unti=input("请输入")
if unit=='q': if unti=="q":
break break
else:
try: try:
tuni = int(unit) unti = int(unti)
except: except:
print("还是") print("输入")
else: else:
zong=zong+ zong = zong+unti
return zong
a = new_iuput()
print(a)
......
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