public class ThreadDemo { public static void main(String[] args){ Demo d = new Demo(); d.start(); for(int i = 0;i < 100;i++){ System.out.println("MainThread" + i); } } } class Demo extends Thread { public void run(
enumerate()枚举函数 例子: for index,key in ennumerate(menu.keys()): print index,key for i in enumerate(range(1,10)): print i输出结果:(0,1) (1,2).......(9,10) os.popen()用来存结果os.popen("dir").read() 执行的输出os.system()执行命令commands.getoutput("d