当然有!例如,您可以将数据输出
csv为。您需要做的就是更改
Content-Type标题。
就像这样:
class Test(webapp.RequestHandler): def get(self, upload_type): self.response.headers['Content-Type'] = 'text/csv' self.response.out.write(','.join(['a', 'cool', 'test']))
当然有!例如,您可以将数据输出
csv为。您需要做的就是更改
Content-Type标题。
就像这样:
class Test(webapp.RequestHandler): def get(self, upload_type): self.response.headers['Content-Type'] = 'text/csv' self.response.out.write(','.join(['a', 'cool', 'test']))