Commit 272a00dc by BellCodeEditor

auto save

parent 965d3515
total = [] def e():
while True: total=[]
unit= input("请输入:") while True:
if unit== 'q': unit= input("请输入:")
break if unit== 'q':
else: break
total.append(unit)
print(total) try:
try: s=int(unit)
age=int(input('你今年几岁?')) except:
except: print('请输入整数')
print('你他奶奶的给老子输整数') else:
\ No newline at end of file total.append(s)
return total
def n(da):
a=0
for i in da:
a=a+i
return a
import func
data=func.e()
def n(da):
a=0
for i in da:
a=a+i
return a
v=n(data)
print(v)
\ 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