美文网首页
添加多线程

添加多线程

作者: Do_More | 来源:发表于2017-07-15 15:22 被阅读0次
import threading

def thread_job():
    print("this is an added Thread,number is %s" % threading.current_thread())

def main():
    added_thread = threading.Thread(target=thread_job)
    added_thread.start()

if __name__ == '__main__':
    main()

相关文章

网友评论

      本文标题:添加多线程

      本文链接:https://www.haomeiwen.com/subject/cdtzhxtx.html