magic-python
magic-python copied to clipboard
c02/c02_04
gpt4:hashlib.md5('hello').hexdigest() 中存在一个错误。因为 hashlib.md5() 需要一个字节串(bytes)作为输入,而不是一个普通的字符串。
@楼上 python -c "import hashlib;print(hashlib.md5('hello'.encode()).hexdigest())"