Commit 7b5c089d by BellCodeEditor

save project

parent 2cf50126
...@@ -13,16 +13,16 @@ def new_input(): ...@@ -13,16 +13,16 @@ def new_input():
print(tatol) print(tatol)
return tatol return tatol
result=new_input() # result=new_input()
def sum(score): def sum(money):
count=0 count=0
for i in score: for i in money:
count=count+i count=count+i
return count return count
price=new_input() # price=new_input()
pay=sum(price) # pay=sum(price)
print("您的总分是"+str(pay)+"分!恭喜您!") # print("您一共消费了"+str(pay)+"元! 扫码还是现金呢?")
try: import func
age=int(input("你今年几岁了"))
except: a=func.new_input()
print("要输入整数啊") b=func.sum(a)
print("程序结束") 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