Commit 7981f11b by BellCodeEditor

auto save

parent abd7b099
Showing with 11 additions and 2 deletions
......@@ -4,10 +4,20 @@ def new_input():
q= input("请输入:")
if q== 'q':
break
try:
q=int(q)
except:
print("请输入一个数字!")
else:
e.append(q)
print(e)
return e
w=new_input()
print(w)
\ No newline at end of file
print(w)
def sum(pig):
for i in w:
k = k + i
print('你已消费了'+str(k))
return k
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