多线程理解,以及代码实现
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()

浙公网安备 33010602011771号