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

Python Challenge卡在第12關了, 求提示

  •  
  •   013231 · Jul 4, 2013 · 3894 views
    This topic created in 4832 days ago, the information mentioned may be changed or developed.
    我已經把那個寫著port的gif弄出來了, 然後就卡在這了.
    不要告訴我完整的答案, 稍微提示一下就好.

    Python Challenge第12關的地址是:
    http://www.pythonchallenge.com/pc/return/evil.html
    用戶名: huge
    密碼: file
    6 replies  •  1970-01-01 08:00:00 +08:00
    nybux
        2
    nybux  
       Jul 4, 2013
    提示:url
    013231
        3
    013231  
    OP
       Jul 4, 2013
    @xuc 我都提取出寫著port的gif了, 顯然已經找到evil2.jpg了.


    @nybux 難道去下一關是要修改URL中的端口號? 可是從哪兒找到端口號呢?
    xuc
        4
    xuc  
       Jul 4, 2013   ❤️ 1
    @013231
    info=open("evil2.gfx").read()
    for i in range(5):
    f = open("12_f%d.jpg" %i, "wb")
    f.write(info[i::5])
    f.close()
    013231
        5
    013231  
    OP
       Jul 7, 2013
    @xuc 謝謝, 不過圖片是三種各是呢, JPEG, PNG和GIF.
    013231
        6
    013231  
    OP
       Jul 7, 2013
    s/各是/格式/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2611 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:41 · PVG 15:41 · LAX 00:41 · JFK 03:41
    ♥ Do have faith in what you're doing.