0
python可以解码的字符串是什么?Python。解码函数
hi = "647361647361"
lolly = hi.decode("hex")
print lolly
什么是Python中存在的其他.decode函数?除(“十六进制”)以外?有没有完整的清单?
python可以解码的字符串是什么?Python。解码函数
hi = "647361647361"
lolly = hi.decode("hex")
print lolly
什么是Python中存在的其他.decode函数?除(“十六进制”)以外?有没有完整的清单?
的完整列表蟒蛇2.7.x是here在7.8.3和7.8.4
你真的应该使用谷歌.... HTTPS://docs.python.org/2/library/codecs。 html#standard-encodings – Kelo
请注意,Python 3改变了很多事情。不要习惯于以后不会被支持的方式做事。 –
'hi.decode(“hex”)''可以像'binascii.unhexlify(hi)'一样写得更持久。 –