摘要: 1、使用正则表达式进行URL匹配urlpatterns = patterns('', # ... (r'^time/plus/\d+/$', hours_ahead), # ...)(1)使用r代表字符串是原始字符串,表示python不会对立面的反斜杠\转义符进行处理,使用正则表达... 阅读全文
posted @ 2014-07-22 09:44 iyjhabc 阅读(213) 评论(0) 推荐(0) 编辑