摘要: subprocess模块提供进程间操作 call方法创建一个子进程 在Linux下,shell=False时, Popen调用os.execvp()执行args指定的程序;shell=True时,如果args是字符串,Popen直接调用系统的Shell来执行args指定的程序,如果args是一个序列 阅读全文
posted @ 2016-06-03 17:23 Alex0425 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 应用场景:注册、登录、文件上传、相册加密.... hash.update(arg) 更新哈希对象以字符串参数,如果同一个hash对象重复调用该方法,则m.update(a); m.update(b) is equivalent to m.update(a+b). hash.digest() 返回摘要 阅读全文
posted @ 2016-06-03 15:28 Alex0425 阅读(104) 评论(0) 推荐(0) 编辑
摘要: import configparser conf = configparser.ConfigParser() conf.read("test.cfg") sections = conf.sections() print (sections)['sec_c', 'sec_b', 'sec_a'] options = conf.options("sec_a") print (options) kv... 阅读全文
posted @ 2016-06-03 11:35 Alex0425 阅读(188) 评论(0) 推荐(0) 编辑