摘要: There are certain things all bosses dread to hear. “I lost the account,” “There’s a big mistake,” and “I think the building is on fire,” would all qua... 阅读全文
posted @ 2015-02-06 11:20 BeStrongerAndInsist 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1. getopt模块:getopt模块用于抽出命令行选项和参数,也就是sys.argv。命令行选项使得程序的参数更加灵活。支持短选项模式和长选项模式。1) 主要函数:getopt(args, shortopts, longopts = [])参数:=====- args 通常是: sys.argv... 阅读全文
posted @ 2015-01-04 17:43 BeStrongerAndInsist 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/phoebus0501/archive/2011/01/18/1938728.html应该尽量避免使用全局变量, 因为:1) 不同的模块都可以自由的访问全局变量,可能会导致全局变量的不可预知性。 对全局变量,如果程序员甲修改了_a的值,程序员乙同时... 阅读全文
posted @ 2014-12-26 12:16 BeStrongerAndInsist 阅读(440) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-12-24 12:50 BeStrongerAndInsist 阅读(14) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-12-22 00:11 BeStrongerAndInsist 阅读(4) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-11-14 16:33 BeStrongerAndInsist 阅读(10) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-11-10 10:25 BeStrongerAndInsist 阅读(7) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-10-30 09:49 BeStrongerAndInsist 阅读(4) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-10-13 12:00 BeStrongerAndInsist 阅读(13) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-10-11 10:03 BeStrongerAndInsist 阅读(4) 评论(0) 推荐(0) 编辑