Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 为什么url X与regex不匹配,gae webapp2相关_Python_Google App Engine_Webapp2 - Fatal编程技术网

Python 为什么url X与regex不匹配,gae webapp2相关

Python 为什么url X与regex不匹配,gae webapp2相关,python,google-app-engine,webapp2,Python,Google App Engine,Webapp2,为什么会这样 /download/vzC43Wji33B21DRJYSoYFQ%3D%3D 与此不匹配 app = webapp2.WSGIApplication([('/', MainHandler), ('/upload', UploadHandler), ('/download/<resource:>', DownloadHandler)],

为什么会这样

/download/vzC43Wji33B21DRJYSoYFQ%3D%3D
与此不匹配

app = webapp2.WSGIApplication([('/', MainHandler),
                           ('/upload', UploadHandler),
                           ('/download/<resource:>', DownloadHandler)],
                          debug=True) 
app=webapp2.WSGIApplication([('/',MainHandler),
('/upload',UploadHandler),
(“/download/”,DownloadHandler)],
debug=True)

我收到一个404错误,DownloadHandler根本没有执行。

您使用带有URL模板的简单路由。要使用URL模板,必须使用webapp2.Route类。请参阅此文档:

我猜无论什么%3D都不是允许的url字符?