Vocabulary: now 现在 jump 跳 catch 抓到 little 小 Reading: See the kitty jump. # 看见小猫跳起 Now the kitty sess the little mouse. # 现在小猫看见了小老鼠 Now it sees the ki ...
分类:
其他好文 时间:
2017-10-29 18:40:29
阅读次数:
152
Vocabulary: kitty 小猫 puppy 小狗 with he...在一起 play 玩耍 mouse 老鼠 Rose 玫瑰,这里是一个人名 with the kitty Reading: Rose has a kitty. #Rose有一个小猫 This is Rose with th ...
分类:
其他好文 时间:
2017-10-29 17:38:56
阅读次数:
154
import multiprocessing,threadingimport timeimport osdef threading_run(): print("线程ID",threading.get_ident())t=threading.Thread(target=threading_run)de ...
分类:
编程语言 时间:
2017-10-28 19:01:10
阅读次数:
182
import threading,time,queueq=queue.Queue(maxsize = 10)def product(name): count = 1 while True: q.put(count) print("%s生产了%s个骨头"%(name,count)) count += ...
分类:
编程语言 时间:
2017-10-27 01:15:12
阅读次数:
233
Class Reference/WP Rewrite This document assumes familiarity with Apache's mod_rewrite. If you've never heard of this before, try reading Sitepoint's ...
分类:
其他好文 时间:
2017-10-26 15:42:22
阅读次数:
280
看了一圈, 没看到稍微好用的ConnectionPool, 除了一个aiomysql, 但是这个是异步的, 我暂时没有用到这么高版本的Python, 所以就动手造一个轮子. 原理比较简单, 先造一个线程安全的集合, 无非就是Lock+Set, 然后修改PyMySQL的close方法, 把实例对象和我... ...
分类:
其他好文 时间:
2017-10-25 15:29:47
阅读次数:
141
Design an algorithm and write code to serialize and deserialize a binary tree. Writing the tree to a file is called 'serialization' and reading back f ...
分类:
其他好文 时间:
2017-10-24 13:08:22
阅读次数:
184
Description 有n个小朋友坐成一圈,每人有ai个糖果。每人只能给左右两人传递糖果。每人每次传递一个糖果代价为1。 有n个小朋友坐成一圈,每人有ai个糖果。每人只能给左右两人传递糖果。每人每次传递一个糖果代价为1。 Input 第一行一个正整数nn<=1'000'000,表示小朋友的个数. ...
分类:
其他好文 时间:
2017-10-23 20:45:56
阅读次数:
109
http://zh.lucida.me/blog/developer-reading-list/ http://blog.csdn.net/qianqing13579/article/details/5109032 ...
分类:
其他好文 时间:
2017-10-23 20:00:27
阅读次数:
117