多线程理解,以及代码实现
作者:互联网
import threading
class MyThreading(threading.Thread):
def run(self):
print("Hello,world!")
my_threading = MyThreading()
my_threading2 = MyThreading()
my_threading.start()
my_threading2.start()
def my_fun():
print("I LOVE YOU")
threading.Thread(target=my_fun).start()
标签:Thread,start,代码,threading,理解,print,多线程,my,MyThreading 来源: https://www.cnblogs.com/kk-style/p/16434400.html