Commit 557a730f by BellCodeEditor

save project

parent 62efbc63
...@@ -12,8 +12,11 @@ def qwe(): ...@@ -12,8 +12,11 @@ def qwe():
print('要输入整数啊') print('要输入整数啊')
else: else:
total.append(i) total.append(i)
return total
def quhe(to):
t=0 t=0
for i in total: for i in to:
t=t+i t=t+i
return t return t
print(qwe())
try: import func
age = int(input('你今年几岁了?')) data=func.qwe()
except: print(func.quhe(data))
print('要输入整数啊') \ No newline at end of file
else:
if age < 18:
print('不可以喝酒哦')
print(('程序结束'))
\ 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