Discuss / Python / 死循环

死循环

Topic source

本来的代码:

a = 1
while a > 0:
    a = a + 1
    print(a)

谁知道 bing chat 给了更简单的:

while True:
    print("Hello")

  • 1

Reply