阅读背景:

路由到基于字符串的方法

来源:互联网 

I'm trying to call a method based on a string in Python similar to the way Tornado routes requests based on the URL. So for example, if I had the string "/hello" I want to call the method "hello" in some class. I've been looking at Python Routes and came up the following solution:I'm trying to call a method based on a string i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: