Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c02/c02_04 #71

Open
utterances-bot opened this issue May 12, 2024 · 2 comments
Open

c02/c02_04 #71

utterances-bot opened this issue May 12, 2024 · 2 comments

Comments

@utterances-bot
Copy link

2.4 命令行式执行 Python 代码 — Python黑魔法手册 1.0.0 documentation

https://magic.iswbm.com/c02/c02_04.html

Copy link

gpt4:hashlib.md5('hello').hexdigest() 中存在一个错误。因为 hashlib.md5() 需要一个字节串(bytes)作为输入,而不是一个普通的字符串。

Copy link

pchaos commented Jun 2, 2024

@楼上 python -c "import hashlib;print(hashlib.md5('hello'.encode()).hexdigest())"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants