Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
kenneth
V2EX  ›  Tornado

想用Storm做一个查询功能,如何用like匹配url传来的变量?

  •  
  •   kenneth · Nov 29, 2012 · 4272 views
    This topic created in 5005 days ago, the information mentioned may be changed or developed.
    @livid
    wd = self.get_argument('wd')
    store.find(App, App.title.like(u"三国%"))

    如何用url传来的变量wd替换掉三国,总出现escape的问题,不知道url里的中文字符集是不是要处理下?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   956 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:00 · PVG 06:00 · LAX 15:00 · JFK 18:00
    ♥ Do have faith in what you're doing.