Commit d0505e74 by BellCodeEditor

save project

parent 92c319aa
import func
a=func.new_input()
b=func.sum()
print("分数为:"+str(b))
\ No newline at end of file
......@@ -13,5 +13,11 @@ def new_input():
total.append(unit)
print("$"*30)
return total
a=new_input()
print(a)
\ No newline at end of file
def sum(a):
c=0
for i in a:
c+=i
return c
# d=new_input()
# pay=sum(d)
# print("您一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ 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