V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2013-07-04 05:56:31 +08:00 · 2873 次点击
    这是一个创建于 3920 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我已經把那個寫著port的gif弄出來了, 然後就卡在這了.
    不要告訴我完整的答案, 稍微提示一下就好.

    Python Challenge第12關的地址是:
    http://www.pythonchallenge.com/pc/return/evil.html
    用戶名: huge
    密碼: file
    6 条回复    1970-01-01 08:00:00 +08:00
    xuc
        1
    xuc  
       2013-07-04 08:19:04 +08:00
    nybux
        2
    nybux  
       2013-07-04 11:33:09 +08:00
    提示:url
    013231
        3
    013231  
    OP
       2013-07-04 14:20:55 +08:00
    @xuc 我都提取出寫著port的gif了, 顯然已經找到evil2.jpg了.


    @nybux 難道去下一關是要修改URL中的端口號? 可是從哪兒找到端口號呢?
    xuc
        4
    xuc  
       2013-07-04 19:15:49 +08:00   ❤️ 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
       2013-07-07 02:43:26 +08:00
    @xuc 謝謝, 不過圖片是三種各是呢, JPEG, PNG和GIF.
    013231
        6
    013231  
    OP
       2013-07-07 02:43:50 +08:00
    s/各是/格式/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1369 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 17:39 · PVG 01:39 · LAX 10:39 · JFK 13:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.