• 请不要在回答技术问题时复制粘贴 AI 生成的内容
314x
V2EX  ›  程序员

关于 tornado 的疑问

  •  
  •   314x · Feb 14, 2014 · 2942 views
    This topic created in 4657 days ago, the information mentioned may be changed or developed.
    请问tornado的handler中一个class能定义两个def get吗?比如一个是def get topic。。。另一个是def get reply。。。?
    mulog
    mulog
    Feb 14, 2014
    1
    为啥不直接用俩handler呢
    zenliver
    zenliver
    Feb 14, 2014
    2
    不能,,,
    mengzhuo
    mengzhuo
    Feb 14, 2014
    3
    写两个handler,然后用url配置成"同一层"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:36 · PVG 05:36 · LAX 13:36 · JFK 16:36
    ♥ Do have faith in what you're doing.