原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://world77.blog.51cto.com/414605/782935 最近比较烦,研发给的pc服务版本在虚拟机上已经开始给客户使用了,服务老是莫名的死翘翘,客户不停的电话给我,搞的....
分类:
编程语言 时间:
2014-08-06 22:21:22
阅读次数:
286
ImportError: No module named win32api出现异常实际是需要安装和自己python兼容的win32all 在http://starship.python.net/crew/mhammond/downloads/可以下载适合自己的版本,安装;记住必须重启才可生效。
先给个LCA模板HDU 1330(LCA模板)#include #include #define N 40005struct Edge{ int x,y,d,ne;};Edge e[N*2],e2[N*2];int be[N],be2[N],all,all2,n,m;bool vis[N];i...
分类:
其他好文 时间:
2014-08-06 21:57:33
阅读次数:
335
200.Which operation requires that you create an auxiliary instance manually before executing theoperation? (Choose all that apply.)A. Backup-based dat...
分类:
其他好文 时间:
2014-08-06 21:51:22
阅读次数:
2954
问题:The brackets must close in the correct order,"()"and"()[]{}"are all valid but"(]"and"([)]"are not.,判断符合条件的符号([])也符合分析:遇到左边符号进栈,右边符号就将栈顶出栈,若和当前遍历的符号...
分类:
其他好文 时间:
2014-08-06 21:44:02
阅读次数:
206
apache:
??pkg:
????-?installed
??service:
????-?running
????-?watch:
??????-?pkg:?apache
??????-?file:?/etc/httpd/conf/httpd.conf
??????-?user:?apache
??...
分类:
其他好文 时间:
2014-08-06 19:34:42
阅读次数:
285
原文地址:http://infiniteloop.in/blog/quick-python-performance-optimization-part-i/
往往小的改变却能带来大的性能提升,
下面说下python中的几点性能优化。
1.使用timeit模块
2.减少函数的调用次数
3.使用xrange代替range
4.''.join()代替+,+=
5.while 1 代替 wh...
分类:
编程语言 时间:
2014-08-06 19:28:32
阅读次数:
247
因为高级搜索包含对象的所有字段,默认没有做限制。有时候不希望暴露太多字段给用户,所以可以使用如下方法,使高级搜索与普通搜索的字段范围相同。
By default, the advanced search function can search by all of the object's fields. But sometimes, we don't want the user to know...
分类:
其他好文 时间:
2014-08-06 19:04:11
阅读次数:
215
Centos7 配置 opencv for python 以及 eclipse c/c++ 对opencv的支持
分类:
编程语言 时间:
2014-08-06 18:47:01
阅读次数:
1359
python 中会把所有不带引号的(双引号或单引号)字符串都视作变量,会去尝试解释它,如果没有值则报错所以,想要引入一个字符串就必须加引起号shell中关于引号shell中系统会把单绰号中的字符都视作字符本身,没有任务他意。而在双引号里部分特殊字符照常会被解释,如("$",反引号"`")等grep,...
分类:
系统相关 时间:
2014-08-06 18:44:11
阅读次数:
294