Commit a96f0027 by BellCodeEditor

save project

parent a6873a7a
...@@ -14,12 +14,12 @@ def new_input(): ...@@ -14,12 +14,12 @@ def new_input():
finally: finally:
print("-"*30) print("-"*30)
return total return total
price=new_input() #price=new_input()
print(price) #print(price)
def sum(money): def sum(money):
cont=0 cont=0
for i in money: for i in money:
cont=cont+i cont=cont+i
return cont return cont
d=sum(price) #d=sum(price)
print(d) #print(d)
\ No newline at end of file \ No newline at end of file
import func import func
\ No newline at end of file dadt=func.new_input()
score=func.sum(dadt)
print('总分是'+str(score))
\ 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