0
import threading,time
def auto2():
while 1:
print ("hello master")
time.sleep(2)
def auto1():
while 1:
print "hello"
time.sleep(3)
x=threading.Thread(target=auto1(),args=())
y=threading.Thread(target=auto2(),args=())
x.start()
y.start()
需要明確的是爲大家,請描述你的預期行爲和實際行爲,甚至如果代碼很簡單。 –