Commit 58919531 by BellCodeEditor

auto save

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