首页 > 编程语言 > 详细

Python多线程

时间:2018-08-12 16:59:08      阅读:143      评论:0      收藏:0      [点我收藏+]

import threading

def write_dbs(i):
    print(i)

if __name__ == ‘__main__‘:
    for i in range(7):
        t = threading.Thread(target=write_dbs, args=(i,))
        t.start()

Python多线程

原文:https://www.cnblogs.com/frisk/p/9463204.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!