Commit 279959ac by BellCodeEditor

save project

parent 05e7d622
Showing with 56 additions and 0 deletions
def new_nput():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit = in(unit)
except:
ptint("请重新输入一个数字")
else:
total.append(unit)
print("-"*30)
total.append(unit)
print(total)
return total
def sen(money):
count=0
for i in mohey
count = count + i
return count
result = new_nput()
pay = sum (price)
print("您一共消费了" + "元!扫码还是现金")
import func
import func
data = func.new_nput()
score = func.sen(data)
print("总分数:"+str(score))
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