Commit 3842c0d1 by BellCodeEditor

auto save

parent 37a0c383
try:
age = int(input('今年你几岁了?'))
except:
print('要输入整数啊')
else:
if age < 18:
print('不可以喝酒哦')
print('程序结束~~')
import func
data = func.new_input()
socre = func.sum(data)
print("zhegexuanshoudezongdefenshi"+str(socre)) cwate
\ No newline at end of file
......@@ -19,6 +19,6 @@ def sum(money):
for i in money:
count = count + i
return count
price = new_input()
pay = sum(price)
print("宁一共消费了" + str(pay) + "元!扫码还是现金呢?")
\ No newline at end of file
# price = new_input()
# pay = sum(price)
# 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