Commit d7bc2e0f by BellCodeEditor

save project

parent a91166ef
Showing with 17 additions and 5 deletions
......@@ -8,7 +8,19 @@ def new_input():
try:
unit=int(unit)
except:
tolal.append(unit)
print(total)
new_input()
\ No newline at end of file
print('请重新输入一个数字')
else:
tolal.append(unit)
finally:
print('=====================')
return total
def sum(money):
count=0
for i in money:
count=cont+i
return count
price=new_input()
pay=sum(price)
print()
\ 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