推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
WinG
V2EX  ›  Python

Python 字节序调试 查看内存地址的问题。

  •  
  •   WinG · May 28, 2017 · 2315 views
    This topic created in 3429 days ago, the information mentioned may be changed or developed.
    最近调试一个 hash 函数,达不到想要的输出。

    感觉可能是字节序的问题。

    已知查某个变量的地址用 id()

    请问 python 怎么可以查看内存地址的内容?

    望高手指导。
    3 replies  •  2017-05-28 13:24:29 +08:00
    XYxe
        1
    XYxe  
       May 28, 2017 via Android   ❤️ 1
    struct 模块?
    ivechan
        2
    ivechan  
       May 28, 2017   ❤️ 1
    memoryview ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 20:54 · PVG 04:54 · LAX 13:54 · JFK 16:54
    ♥ Do have faith in what you're doing.