Commit 7981f11b by BellCodeEditor

auto save

parent abd7b099
Showing with 10 additions and 0 deletions
......@@ -4,6 +4,10 @@ def new_input():
q= input("请输入:")
if q== 'q':
break
try:
q=int(q)
except:
print("请输入一个数字!")
else:
e.append(q)
print(e)
......@@ -11,3 +15,9 @@ def new_input():
w=new_input()
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