Commit 98ecfa0e by BellCodeEditor

auto save

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