Commit d09913ed by BellCodeEditor

save project

parent 58919531
Showing with 12 additions and 25 deletions
......@@ -12,16 +12,7 @@ def new_input():
else:
total.append(unit)
print("-"*30)
return total
print(total)
def m(q):
c=0
for i in q:
c=c+i
return c
p=new_input()
n=m(p)
print(n)
\ No newline at end of file
new_input()
\ No newline at end of file
q=[15,14,16,25]
def m():
c=0
for i in q:
c=c+i
return c
p=new_input()
n=m(p)
print(n)
try:
age = int(input('你几岁'))
except:
print('输整数')
else:
if age <18:
print('不可喝酒111')
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