1.patterns 函数在最细的django1.10中被舍弃了 原来 urlpatterns = patterns("",(r'^hello/$', hello),) 现在 urlpatterns = [(r'^hello/$', hello),]