by Devin Yang

建立于: 3年前 ( 更新: 3年前 )

日志,如何使用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运行系统命令

我如何用Pyhton运行系统命令,这里有个简单的范例

linux, python, colab

如何从我们的Server透过ssh连线到colab?

介绍我写的一支bash,用来透过ssh连线到colab vm内。 一行命令,搞定colab OpenSSH Server。