u'He said \u201CHello\u201D'.encode('iso-8859-1')UnicodeEncodeError u'He said \u201CHello\u201D'.encode('cp1252')'He said \x93Hello\x94' 如果仅将数据库用作字节存储,则可以使用cp1252进行编码,“以及...
我知道一定是由于编码。你能帮我吗?from Crypto.Hash import MD4 psk='The quick brown fox jumps over the lazy dog' h=MD4.new() h.update(psk.encode('UTF-16LE')) print(f'UTF-16LE:{h.hexdigest()}') h.update...