Commit 0f93b841 by BellCodeEditor

save project

parent aee41f12
...@@ -15,8 +15,18 @@ def new_input(): ...@@ -15,8 +15,18 @@ def new_input():
print("-"*30) print("-"*30)
return total return total
for i in prince: def sum(money):
count=0
for i in money:
count=count+i
return count
price=new_input()
pay=sum(price)
#print("你消费了"+str(pay)+"元")
# try: # try:
# age=int(input("你今年几")) # age=int(input("你今年几"))
# except: # except:
......
import diy
date=diy.new_input()
score=diy.sum(date)
\ 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