Discuss / Python / 死循环

死循环

Topic source

空瓶灵芝

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

#/use/bin/env/python3

-- coding:utf-8 --

import os n=1 while n>0: n=n+1 print(n) os.system("pause")

空瓶灵芝

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

#/use/bin/env/python3

-- coding:utf-8 --

import os n=1 while n>0: n=n+1 if n%2 ==0: continue print(n) os.system("pause")


  • 1

Reply