Commit 58919531 by BellCodeEditor

auto save

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