上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 25 下一页
摘要: 阅读全文
posted @ 2017-02-23 15:41 失落的黎明 阅读(308) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-02-23 15:39 失落的黎明 阅读(141) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-02-23 15:35 失落的黎明 阅读(445) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-02-23 15:31 失落的黎明 阅读(154) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-02-23 15:29 失落的黎明 阅读(875) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-02-23 15:22 失落的黎明 阅读(157) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-02-23 14:35 失落的黎明 阅读(320) 评论(0) 推荐(0)
摘要: 1 import queue 2 import contextlib 3 import time 4 5 6 @contextlib.contextmanager 7 def worker_state(xxx,val): 8 xxx.append(val) 9 print("before",xxx) 10 try: 11 time.s... 阅读全文
posted @ 2017-02-23 13:50 失落的黎明 阅读(160) 评论(0) 推荐(0)
摘要: import Queue myqueue = Queue.Queue(maxsize = 10) Queue.Queue类即是一个队列的同步实现。队列长度可为无限或者有限。可通过Queue的构造函数的可选参数maxsize来设定队列长度。如果maxsize小于1就表示队列长度无限。 将一个值放入队列 阅读全文
posted @ 2017-02-22 11:51 失落的黎明 阅读(704) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python import hashlib def md5(arg): ooo = hashlib.md5(bytes('taochen', encoding='utf-8')) ooo.update(bytes(arg, encoding='utf-8')) retu 阅读全文
posted @ 2017-02-14 21:59 失落的黎明 阅读(1199) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 25 下一页