摘要:
% 格式 tpl = "i am %s" % "alex" tpl = "i am %s age %d" % ("alex", 18) tpl = "i am %(name)s age %(age)d" % {"name": "alex", "age": 18} tpl 阅读全文
摘要:
import hashlib def md5(arg): ooo = hashlib.md5(bytes('qazwsx',encoding='utf-8')) ooo.update(bytes('arg',encoding='utf-8')) return ooo.hexdigest() def 阅读全文