Commit ff8b8862 by BellCodeEditor

save project

parent dc70412a
Showing with 21 additions and 0 deletions
def new_input():
total = []
jiage=0
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(int(unit))
print(total)
jiage+=int(unit)
print(jiage)
try:
new_input():
except:
print("要输入整数"):
else:
for i in total
\ 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