Commit 3eed23e4 by BellCodeEditor

save project

parent 4928d35e
Showing with 17 additions and 3 deletions
...@@ -5,6 +5,20 @@ def xx(): ...@@ -5,6 +5,20 @@ def xx():
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
unit=int(unit)
except:
print('sb啊!输入整数!!!!!!!!!!!!!!!!!!!!!!!!!!!')
else:
total.append(unit)
print('__'*30)
print(total) print(total)
xx() return total
\ No newline at end of file a=xx()
print(a)
def x(a):
tt=0
for i in a:
tt=i+tt
return tt
print(x(a))
\ 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