我想打电话给http://localhost:8080/match/123/subtitle
def match(self, dayid):
day = dayid
day_folder = os.path.join(root_folder,day)
#Some logics here
@cherrypy.expose
def subtitle(self, mid):
return "Requesting subtitle for ", mid
这不是正确的方法吗?如果没有,重写Url的正确方法是什么?在
我试过下面的方法,但也不管用。在
^{pr2}$
你可以用一个定制的调度器。这是一个简单的例子给你一个想法。你走对了。在
相关问题 更多 >
编程相关推荐