比如要实现对于主题“投票”的计数,写成def get_vote_by_topic_id_and_trigger_user_id_count(self, topic_id, trigger_user_id),后面括号里的内容是否需要写?
1
leiz Feb 11, 2014 你想表达什么?
|
2
nichan Feb 11, 2014 |
5
strak47 Feb 11, 2014
你这个函数是一个 requesthandler 吗,是的话取决于你的 url 如何配置,
如果是 /path?topic_id=xxx&user_id=yyy 则不需要这两个参数,直接 self.get_argument('topic_id') 即可。 |