Discuss / Python / 各位 我没看懂while函数。。

各位 我没看懂while函数。。

Topic source

L=["bart","lisa","adam"] for name in L: print(name)

bart lisa adam

然而我没看懂while循环怎么写的。TTTTTT

萌13131313

#2 Created at ... [Delete] [Delete and Lock User]

代码:

while 1 == 1:
    print(100)

如果1 == 1为真,就打印一百。


  • 1

Reply