摘要: Python调试不如强类型的语言方便,显示调用栈有时非常必要,inspect模块很好用import inspectinspect.stack()inspect.stack()返回的是一个函数栈帧列表如(已经做了一个for e in inspect(): print e 转化)(, '/usr/lib... 阅读全文
posted @ 2014-08-19 23:52 卖程序的小歪 阅读(1213) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 void print(int *a, int start , int end); 4 5 void quick_sort(int *a, int start, int end) { 6 if (start + 1 >= end) return; 7 ... 阅读全文
posted @ 2014-08-19 18:17 卖程序的小歪 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 每次学了忘,忘了学,怎么记不住,因为长时间不用了Bash 流程控制循环for循环for item in $listdo echo $itemdone另一种与C语言类似的写法for((i=0; i $numb)); then echo "$numa > $numb"else ... 阅读全文
posted @ 2014-08-19 13:10 卖程序的小歪 阅读(390) 评论(0) 推荐(0) 编辑