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

关于 tornado 的疑问

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