Commit 272a00dc by BellCodeEditor

auto save

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