V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
1oscar
V2EX  ›  Python

1. 浏览器里显示: ***/GetSIN/sin,5 2. ***/Search/cd,c2-sin,6-pg,1 这两个 URL 里的 sin,5 和 cd,c2-sin,6-pg,1 是什么呢,怎么实现的?

  •  
  •   1oscar · Jun 12, 2015 · 2655 views
    This topic created in 3978 days ago, the information mentioned may be changed or developed.

    求助,如题

    ***/GetSIN/sin,5 : GetSIN 应该是文件夹, sin,5可能是 是什么呢?

    ***/Search/cd,c2-sin,6-pg,1 : Search 是文件夹, cd,c2-sin,6-pg,1可能是什么呢?

    sin,5 , cd,c2-sin,6-pg,1 有可能是 文件的名字吗,里面的数字有可能是参数吗?

    9 replies    2015-06-12 23:39:58 +08:00
    suikator
        1
    suikator  
       Jun 12, 2015 via Android
    我怎么觉得GetSIN应该是方法名
    cst4you
        2
    cst4you  
       Jun 12, 2015
    ...这是哪门子程序员用的奇葩分隔符
    1oscar
        3
    1oscar  
    OP
       Jun 12, 2015
    @suikator 我也不知道,可能是文件夹,可能是方法名,反正在浏览器里显示的URL就是那样的
    1oscar
        4
    1oscar  
    OP
       Jun 12, 2015
    @cst4you 西班牙的
    zhjits
        5
    zhjits  
       Jun 12, 2015
    确定是逗号?分号的话是可以在 URL 里面出现的。
    flydogs
        6
    flydogs  
       Jun 12, 2015
    **看昏了**
    1oscar
        7
    1oscar  
    OP
       Jun 12, 2015
    @zhjits 是逗号呀,所以我也好奇,总不可能文件名是这样命名的吧
    zhjits
        8
    zhjits  
       Jun 12, 2015
    @1oscar 不一定的……反正这个字符串会被服务器接收到,只要服务器端能正常处理就好了,说不定对面就是个 CGI 程序,拿逗号当作参数分隔符了……
    bdbai
        9
    bdbai  
       Jun 12, 2015 via iPhone
    url转发之[任性的URL]
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2507 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 08:40 · PVG 16:40 · LAX 01:40 · JFK 04:40
    ♥ Do have faith in what you're doing.