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

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

  •  
  •   kenneth · Nov 29, 2012 · 4159 views
    This topic created in 4939 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   ·   6230 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 79ms · UTC 02:17 · PVG 10:17 · LAX 19:17 · JFK 22:17
    ♥ Do have faith in what you're doing.