Published - 4 years ago ( Updated - 4 years ago )
Record, how to use thread to perform functions
from threading import Thread
def test(*args):
#parameter one
text = list(args)[0]
print(text)
# Execute function with Thread
thread = Thread(target=test, args=["testabc"])
thread.start()
No Comment
Post your comment