Documentation: http://docs.python.org/2.7/library/argparse.html
- 指定
--foo时内部提供数值或者其他参数:store_const- 特殊情况
store_true/store_false给foo赋予True/False布尔值
- 特殊情况
- 可以参数可以出现多次时:
append,类似的还有append_const
Documentation: http://docs.python.org/2.7/library/argparse.html
--foo 时内部提供数值或者其他参数: store_const
store_true/store_false 给 foo 赋予True/False布尔值append,类似的还有append_const| def get_firmware_urls(self): | |
| conn = self.get_connection() | |
| result_cur = conn.execute(Downloader_SQLite.SELECT_CHINA_COMMAND) | |
| print type(result_cur) | |
| #print result_cur.fetchone() | |
| result_list = result_cur.fetchall() | |
| print type(result_list) | |
| # for row in result_cur.fetchall(): | |
| # print type(row) | |
| # print row |
| import time | |
| rand = int(time.mktime(time.gmtime())) |
三星的企业安全,在S4中加入了SELinux的特性,但是是非规范的,不完整的。
Credit: Clone Your Octopress to Blog From Two Places
每个octopress建立的静态站点的结构是(假定octopress目录为 $octopress):
source分支master分支deploy时需要解决的问题就是moduler的依赖问题。比如使用BeautifulSoup开发
| #define LOGE(fmt,args...) fprintf(stderr, fmt, ##args) | |
| #define LOGD(fmt,args...) fprintf(stderr, fmt, ##args) | |
| #define LOGW(fmt,args...) fprintf(stderr, fmt, ##args) | |
| #include <errno.h> | |
| #include <string.h> | |
| #define PLOGE(fmt,args...) LOGE(fmt " failed with %d: %s", ##args, errno, strerror(errno)) | |
| #define PLOGEV(fmt,err,args...) LOGE(fmt " failed with %d: %s", ##args, err, strerror(err)) |
copy/cut多个文本,可以通过 C-y 粘贴,之后通过多次 M-y 逐个选择
| http://blog.csdn.net/qiaoliang328/article/details/4722377 | |
| http://alas.matf.bg.ac.rs/manuals/lspe/snode=38.html |