python多线程(实践)
摘要:
前言: 上面讲了单线程,现在就将一下多线程,直接上代码: 1.创建threading.Thread的子类来包装一个线程对象 #encoding:utf8 import threading import time class timer(threading.Thread): def __init__( 阅读全文
posted @ 2017-08-30 22:53 暗淡沁 阅读(220) 评论(0) 推荐(0)
posted @ 2017-08-30 22:53 暗淡沁 阅读(220) 评论(0) 推荐(0)
posted @ 2017-08-28 22:14 暗淡沁 阅读(108) 评论(0) 推荐(0)
posted @ 2017-08-22 23:24 暗淡沁 阅读(323) 评论(0) 推荐(0)
posted @ 2017-08-22 00:30 暗淡沁 阅读(350) 评论(0) 推荐(0)
posted @ 2017-08-19 00:21 暗淡沁 阅读(456) 评论(0) 推荐(0)