def triangles(): L = [1] while True: yield L L = [1] + [L[x] + L[x+1] for x in range(len(L)-1)] + [1] n = 0 for t in triangles(): print(t) n = n + 1 if n == 10: break
想请教一下,while true针对的是什么条件呢
while True = 死循环
Sign in to make a reply
JOIEUH