def post(self): name = self.get_argument('name', None) if not name: self.finish('添加失败,标签名不能为空') return Tag.add(name) self.finish('添加成功')