![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
onlyellow
NEVER MIND~ JUST DO IT!
展开
-
[python]带参数的装饰函数解析
所谓装饰函数,也就是把目标函数包装下,再返回。 例如: def log(f): print "decorate the func " + f.__name__ def wrapper(*args, **kw): return f(*args, **kw) return wrapper @log def a(): print "I am a" l原创 2015-12-03 13:11:05 · 1009 阅读 · 0 评论 -
ERROR: Remote error: BdbQuit 的解决办法
openstack中用heat 创建虚拟机的时候 ,一直报错 ERROR: Remote error: BdbQuit 根据log定位报错地点 ,发现代码并无异常。 怀疑是由于之前一直下断点导致代码格式哪里发生了错误。 为了省事,直接重新安装相关rpm包。 问题解决。原创 2016-05-30 11:42:40 · 2357 阅读 · 0 评论 -
离线安装pip
离线安装pip pip离线安装其他包原创 2017-10-13 15:23:52 · 7281 阅读 · 3 评论 -
Python Tips
1. centos6 环境安装python2.7 centos6默认安装的是python2.6. 但是我们常常需要2.7版本。 下载python源码包。 安装编译工具: yum groupinstall -y "development tools" 进入python目录 ./configure --prefix=/usr/local make && make alt原创 2017-12-02 18:50:14 · 219 阅读 · 0 评论 -
python debug
python 条件断点原创 2017-12-22 17:03:56 · 405 阅读 · 0 评论