摘要:
Copy and Paste in Scrollback mode (screen/byobu) Enter scrollback mode: F7 Move the cursor to the start of the text you want to copy, hit spacebar Mov
阅读全文
posted @ 2018-05-10 15:42
Go_Forward
阅读(171)
推荐(0)
摘要:
from: http://cenalulu.github.io/linux/all-vim-cheatsheat/ 史上最全Vim快捷键键位图 -- 入门到进阶 史上最全Vim快捷键键位图 -- 入门到进阶 文章欢迎转载,但转载时请保留本段文字,并置于文章的顶部 作者:卢钧轶(cenalulu) 本
阅读全文
posted @ 2018-05-10 14:43
Go_Forward
阅读(183)
推荐(0)
摘要:
Python没有提供方法去结束一个线程,无法给它发送信号,无法调整它的调度,也无法执行其他高级操作。 如果需要终止线程,需要通过编程让这个线程在某个特定点轮询来退出。但是如果一个线程一直阻塞在一个 I/O 操作上,它就永远无法返回,也就无法检查自己是否已经被结束了。要正确处理这些问题,需要利用超时循
阅读全文
posted @ 2018-05-09 09:32
Go_Forward
阅读(903)
推荐(0)
posted @ 2018-05-08 17:49
Go_Forward
阅读(560)
推荐(0)
摘要:
使用gevent实现mysql并发时,每个greenlet应该独享一个mysql连接,否则,不同的greenlet之间会相互影响。 ultramysql doesn't allow you to make multiple queries on the same mysql connection,
阅读全文
posted @ 2018-05-08 12:01
Go_Forward
阅读(390)
推荐(0)
摘要:
type(a)(1.0) a = 1 b = 1.0 type(a)(1.0) # 根据a的类型转换b 类型转换 int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x) 将x转换到一个浮点数 complex(real [,imag
阅读全文
posted @ 2018-05-07 15:20
Go_Forward
阅读(111)
推荐(0)
摘要:
https://blog.csdn.net/dipolar/article/details/50752839/ http://bbs.pinggu.org/thread-5015032-1-1.html
阅读全文
posted @ 2018-05-07 14:32
Go_Forward
阅读(201)
推荐(0)
摘要:
依赖tqdm包 安装: sudo pip install tqdm
阅读全文
posted @ 2018-05-04 10:01
Go_Forward
阅读(319)
推荐(0)
摘要:
生成器函数的工作原理只要 Python 函数的定义体中有 yield 关键字, 该函数就是生成器函数。 调用生成器函数时, 会返回一个生成器对象。 也就是说, 生成器函数是生成器工厂。 调用生成器函数返回生成器; 生成器产出或生成值. 构建可迭代的对象和迭代器时经常会出现错误, 原因是混淆了二者。
阅读全文
posted @ 2018-05-03 09:57
Go_Forward
阅读(205)
推荐(0)
摘要:
https://blog.csdn.net/m0_37343696/article/details/79252979
阅读全文
posted @ 2018-04-28 21:56
Go_Forward
阅读(138)
推荐(0)