by Devin Yang

建立于: 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()

Tags: python

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


python

Macos运行Python出现certificate verify处理

我运行python时,出错的笔记

python

python fastapi速查笔记

简单日志运行fastapi的安装步骤

python

python版的tirm命令

日志python的tirm命令如何使用