Commit 30d091ab by BellCodeEditor

auto save

parent 8c25455c
Showing with 9 additions and 3 deletions
def new(): def new():
z=[] z=[]
while True: while True:
a=input("输入价格") a=input("输入价格")
if a=="stop": if a=="stop":
break break
else: else:
...@@ -12,4 +12,4 @@ def new(): ...@@ -12,4 +12,4 @@ def new():
else: else:
z.append(a1) z.append(a1)
print(z) print(z)
new() #print(z)
\ No newline at end of file \ No newline at end of file
def add(x,y):
z=x+y
print("z的值为:",z)
#return z
add(8,7)
\ 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