2018年11月27号
2018年11月28号
测试源码:
def doWaiting1():
print('start waiting1:' + time.strftime('%H:%M:%S')+ '\n')
time.sleep(3)
print('stop waiting1:' + time.strftime('%H:%M:%S')+'\n')
def doWaiting2():
print('start waiting2:' + time.strftime('%H:%M:%S')+'\n')
time.sleep(8)
print('stop waiting2:' + time.strftime('%H:%M:%S') + '\n')
tsk = []
thread1 =threading.Thread(target = doWaiting1, name = 'thread1')
thread1.start()
tsk.append(thread1)
thread2 =threading.Thread(target = doWaiting2, name = 'thread2')
thread2.start()
tsk.append(thread2)
print ('start join:' + time.strftime('%H:%M:%S') + '\n')
for i in tsk:
i.join(3)
print('end join:' + time.strftime('%H:%M:%S') + '\n')
2018年11月29号
2018年11月30号
2018年12月12号
2018年12月13号
2018年12月14号
2018年12月17日
2018年12月21日
2018年12月27日
- vim中实现全选功能
- 文本如下图:
- 按Esc,切换到命令模式
- 输入gg,光标移动到第一行
- 切换到大写模式,输入V,进入visual line 模式
- 输入大写的G,光标切换到最后一行
- 输入D,删除所有内容
- 文本如下图: