推荐学习书目
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
E520
V2EX  ›  Python

hex to bin 16 进制转 2 进制 用 Python 怎么写呀

  •  
  •   E520 · Mar 13, 2019 · 3706 views
    This topic created in 2633 days ago, the information mentioned may be changed or developed.
    7 replies    2019-03-17 02:36:36 +08:00
    E520
        1
    E520  
    OP
       Mar 13, 2019
    求大神帮助!!
    CEBBCAT
        2
    CEBBCAT  
       Mar 13, 2019 via Android   ❤️ 1
    十六进制到 int:d = int ('ff', base=10)
    int 到二进制:print(bin(d))

    我知道这样的问题对于你来说很难,但我还是不喜欢你发的这个帖子,因为这个问题一搜就有
    kuangwinnie
        3
    kuangwinnie  
       Mar 13, 2019
    https://stackoverflow.com/questions/1425493/convert-hex-to-binary

    连接上 google
    然后把你这个问题里面出现的所有英文丢进去
    第一个答案就是
    CEBBCAT
        4
    CEBBCAT  
       Mar 13, 2019 via Android
    @CEBBCAT 应该 base=16,写错了
    sdlearn
        5
    sdlearn  
       Mar 13, 2019 via Android
    Google 一下不比发个帖子容易多了
    7654
        6
    7654  
       Mar 13, 2019
    考试的时候不知道怎么办?
    很简单,动手算,过程撸个算法出来
    CEBBCAT
        7
    CEBBCAT  
       Mar 17, 2019 via Android
    ……问题解答好了连个谢谢也没有,差评
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2842 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:17 · PVG 23:17 · LAX 08:17 · JFK 11:17
    ♥ Do have faith in what you're doing.