Commit 98ecfa0e by BellCodeEditor

auto save

parent c08cea53
Showing with 14 additions and 11 deletions
total = []
def func():
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
func()
\ No newline at end of file
def ooo(x):
ooo_list=[]
i=0
while i<x:
ooo_list.append(i)
i+=1
print(i)
return ooo_list
ooo(10)
for i in ooo(10):
print(i)
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