假设我有这样一个程序:
import threading
def dosomething():
print "Something"
class thread2(threading.Thread):
def run():
dosomething()
thread2().start()
< p> dosomething()
函数是从定义它的主线程运行,还是从调用它的thread2
线程运行?
我正在编写一个pygame
程序,因为无法从多个类中调用pygame的方法。