当出现No rule to make target ,肯定是Makefile有问题。 有的makefile是脚本生成的,你得看脚本的配置文件对不对。 我的是这个脚本生成的。发现是Pythondir的配置不对: PYTHON_DIR=/home/zgq/anaconda3cmake \-DPYTHON ...
分类:
编程语言 时间:
2016-12-21 23:54:23
阅读次数:
527
1 import logging 2 LOG_LEVEL = logging.NOTSET 3 LOGFORMAT = "[%(log_color)s%(levelname)s] [%(log_color)s%(asctime)s] %(log_color)s%(filename)s [line:%... ...
分类:
编程语言 时间:
2016-12-21 21:17:29
阅读次数:
935
在Windows上可能遇到,开启的子进程不会关闭的问题 参考multiprocessing官方文档: Explicitly pass resources to child processes On Unix a child process can make use of a shared resou ...
最近在提高自己编程能力,拿一些实用的小工具练下。该脚本为python语言,主要涉及模块zipfile,threadings模块。 功能:暴力猜解zip解压密码 ...
分类:
编程语言 时间:
2016-12-21 02:27:41
阅读次数:
223
#变量来自原始用户名和密码 username = 'admin' password = 'nimda' #变量来自计数器 count = 0 #循环条件计数器小于3,则执行while代码块 while count < 3: #变量来自用户输入用户名和密码 inuser = input('input ...
分类:
其他好文 时间:
2016-12-21 02:07:17
阅读次数:
1174
信号量适用与多线程竞争有限资源的情况。 输出结果: 参考资料:Python核心编程.第四章.Wesley Chun著 ...
分类:
编程语言 时间:
2016-12-21 01:51:32
阅读次数:
173
一、简介: argparse是python用于解析命令行参数和选项的标准模块,用于代替已经过时的optparse模块。argparse模块的作用是用于解析命令行参数,例如python parseTest.py input.txt output.txt --user=name --port=8080。 ...
分类:
其他好文 时间:
2016-12-21 00:04:04
阅读次数:
290
斐波那契数列指的是这样一个数列 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368........ 这个数列从第3项开始,每一项都等于前两项之和。 ...
分类:
其他好文 时间:
2016-12-20 23:37:50
阅读次数:
237
It's also worth noting that you can use * and ** when calling functions as well. This is a shortcut that allows you to pass multiple arguments to a fu ...
分类:
编程语言 时间:
2016-12-20 18:11:45
阅读次数:
195
python中的urlencode与urldecode 发表于2013/11/13 16:04:09 79983人阅读 分类: python 当url地址含有中文,或者参数有中文的时候,这个算是很正常了,但是把这样的url作为参数传递的时候(最常见的callback),需要把一些中文甚至'/'做一下 ...
分类:
编程语言 时间:
2016-12-20 15:56:20
阅读次数:
202