Google应用程序引擎使用Python提供缩进错误

Google应用程序引擎使用Python提供缩进错误,python,google-app-engine,Python,Google App Engine,我正在尝试使用GoogleAppEngine在本地托管一个简单的python脚本。页面不显示表单,而是保持加载空白。在终端中,第13行显示“缩进错误:应为缩进块”。我在那里找不到缩进错误。有什么问题吗 import webapp2 form = """ <form method="post" action="/testform"> <input name="q"> <input type="submit"> </form> """ cl

我正在尝试使用GoogleAppEngine在本地托管一个简单的python脚本。页面不显示表单,而是保持加载空白。在终端中,第13行显示“缩进错误:应为缩进块”。我在那里找不到缩进错误。有什么问题吗

import webapp2

form = """
<form method="post" action="/testform">
    <input name="q"> <input type="submit">
</form>
"""

class MainPage(webapp2.RequestHandler):
    def get(self):

class TestHandler(webapp2.RequestHandler):
    def post(self):
        q=self.request.get("q") 
        self.response.out.write(q)

app = webapp2.WSGIApplication([('/', MainPage),
                              ('/testform', TestHandler)],
                             debug=True)
导入webapp2
form=”“”
"""
类主页(webapp2.RequestHandler):
def get(自我):
类TestHandler(webapp2.RequestHandler):
def post(自我):
q=self.request.get(“q”)
自我.回应.输出.写入(q)
app=webapp2.WSGIApplication([(“/”,主页),
('/testform',TestHandler)],
debug=True)
之后什么都没有。它需要一些东西,即使它只是一个
pass
语句


第13行是第一行,紧跟其后的是文本,错误消息说应该是缩进文本。在出现之前查看一下,您会发现预期缩进来自何处。

这个问题似乎与主题无关,因为它涉及操作编码错误(空方法),对其他人几乎没有帮助
class MainPage(webapp2.RequestHandler):
    def get(self):