#无参 import threading import time
def run(): print("Hello,word!")
da1 = threading.Thread(target=run) da1.start() #有参数传递 import threading import time
def run(n): print("Hello,word!",n)
da1 = threading.Thread(target=run,args=("t1",)) da1.start()