建立於: 4年前 ( 更新: 4年前 )
記錄,如何使用thread執行功能
from threading import Thread
def test(*args):
#參數一
text = list(args)[0]
print(text)
#用Thread執行功能
thread = Thread(target=test, args=["testabc"])
thread.start()
No Comment
Post your comment