Skip to content

c02/c02_04 #71

Description

@utterances-bot

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

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

Activity

  1. 2465622629 commented on May 12, 2024

    @2465622629

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

  2. pchaos commented on Jun 2, 2024

    @pchaos

    @楼上 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions