摘要:
import configparser config=configparser.ConfigParser() #拿到一个configparser模块操作句柄config config['DEFAULT']={'ServerAliveInterval': '45', 'Compression': 'y 阅读全文
posted @ 2018-01-29 21:58
V神丫丫
阅读(219)
评论(0)
推荐(0)
摘要:
hashlib import hashlib with open ('by change','rb') as f : for line in f: md5=hashlib.md5() md5.update(line) ret=md5.hexdigest() with open('by change_ 阅读全文
posted @ 2018-01-29 21:50
V神丫丫
阅读(139)
评论(0)
推荐(0)
摘要:
原版:a.func() ret2 = getattr(a, 'func') print(ret2) #<bound method A.func of <__main__.A object at 0x01B5EBB0>>打印的是函数地址,并没有调用 ret2() #加括号就表示调用,打印‘对象方法’ 阅读全文
posted @ 2018-01-29 21:44
V神丫丫
阅读(383)
评论(0)
推荐(0)
浙公网安备 33010602011771号