Commit 853d3347 by BellCodeEditor

auto save

parent 03212f1c
Showing with 12 additions and 3 deletions
...@@ -4,11 +4,20 @@ def new_input(): ...@@ -4,11 +4,20 @@ def new_input():
q= input("请输入:") q= input("请输入:")
if q== 'q': if q== 'q':
break break
try:
q=int(q)
except:
print('请呀希')
else: else:
e.append(q) e.append(q)
print(e) print(e)
return e return e
w=new_input() w=new_input()
print(w) print(w)
\ No newline at end of file
def sum(pig):
for i in e:
k=0
k=k+i
print()
\ 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