by Devin Yang
(This article was automatically translated.)

Published - 3 years ago ( Updated - 3 years ago )

Record, how to use thread to perform functions
from threading import Thread
def test(*args):
    #parameter one
    text = list(args)[0]

# Execute function with Thread
thread = Thread(target=test, args=["testabc"])

Tags: python

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


Execute system commands with python

How do I execute system commands with Python, here is a simple example


Macos executes Python and appears certificate verify processing

When I execute python, I get an error note


Python fastapi quick reference notes

Simply record and execute the installation steps of fastapi