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
iphantom
V2EX  ›  Python

flask route()能否加载动态网页?

  •  
  •   iphantom · 2016-06-14 11:00:27 +08:00 · 2602 次点击
    这是一个创建于 2885 天前的主题,其中的信息可能已经有所发展或是发生改变。
    route(/getname) 可以
    route(/getname?abc) 不可以

    求教解决办法·······
    5 条回复    2016-06-14 12:57:11 +08:00
    am241
        1
    am241  
       2016-06-14 11:03:56 +08:00 via Android
    参数不应该在程序里判断的吗
    iphantom
        2
    iphantom  
    OP
       2016-06-14 11:05:22 +08:00
    @am241 什么意思
    https://127.0.0.1:5000/Assess/getPriceByKeyWord?access_token=xxxx&sCity=xxxx&sKeyWord=xxxx&sUserKey=xxxx


    这样的链接 返回一个固定的值 怎么实现?
    seki
        3
    seki  
       2016-06-14 11:10:14 +08:00
    iphantom
        4
    iphantom  
    OP
       2016-06-14 11:34:46 +08:00
    找到原因了 https http

    哎 郁闷
    daweibao
        5
    daweibao  
       2016-06-14 12:57:11 +08:00 via Android
    route(/getname/<string:name>)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3580 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:27 · PVG 19:27 · LAX 04:27 · JFK 07:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.