📜  如何在 python 代码示例中创建一个可破坏的循环

📅  最后修改于: 2022-03-11 14:46:50.741000             🧑  作者: Mango

代码示例1
while True: # This calls for an infinite loop
    print("Hello, World") 
    # Stuff that is under this loop will go on for forever.
    # Unstead of "True" you can insert anything -
    # that you want just like using an "if". 
    #It just like "if" but it goes on forever. For example:
    
x=3 # or anything like input....
while x+3==6:
  print("Hello, World")