Commit febe29a4 by BellCodeEditor

save project

parent 096932d2
Showing with 9 additions and 7 deletions
z=[] def data():
while True: z=[]
a=int(input("输入价格")) while True:
a=int(input("输入价格")
if a=="stop": if a=="stop":
break break
else: else:
...@@ -9,7 +10,8 @@ while True: ...@@ -9,7 +10,8 @@ while True:
except: except:
print("输入数字") print("输入数字")
else: else:
z.append(a1) zong.append(a1)
print(z) print(zong)
return(zong)
new() print(zong)
\ No newline at end of file \ 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