Commit 6d03d829 by BellCodeEditor

auto save

parent 86047d99
Showing with 13 additions and 3 deletions
def total(list):
t=""
for i in list:
t=t+i
print(t)
return(t)
w=total(list=["wo","是","猪猪"])
print(w)
\ No newline at end of file
def data():
zong=[]
zong=[] #局部变量
while True:
a=input("输入价格")
if a=="stop":
......@@ -14,6 +14,7 @@ def data():
print(zong)
return(zong)
w=data()
print(w[1])
print(w)
\ 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