python3问题-python多线程

Posted by lizhao on 04-18,2019

python多线程

def m_print_no_arg():
print(“thread m_print_no_arg”)

def m_print(arg):
print(“thread %s”, arg)

t1= threading.Thread(target=m_print, args=())
t2 = threading.Thread(target=m_print, args=(“as”))
t1.start()
t2.start()

最近写python遇到的一些问题,望给大家一点帮助。我是小王,CSDN博客: [ https://blog.csdn.net/cmqwan

](https://blog.csdn.net/cmqwan)