如果想同时执行两个while True循环,可以使用多线程threading来实现。 完整代码 #coding=gbk from time import sleep, ctime import threading def muisc(func): while True: print 'Start playing: %s! %s' %(func,ctime... Read More
posted @ 2016-11-30 11:46
zoro_robin
Views(13184)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号