Commit 9befb518 by BellCodeEditor

save project

parent 12b701ea
Showing with 4 additions and 1 deletions
......@@ -6,7 +6,8 @@ def suan_zhang():
break
else:
try:
int(input("阿达萨达"))
unit=int(unit)
print("-"*30)
except:
print("要输入整数哟")
else:
......@@ -19,3 +20,4 @@ def sum(m):
return count
a=suan_zhang()
b=sum(a)
print("您一共消费"+str(b)+"元。")
\ 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