from handlers.HandlerBase import BaseHandler from model.DataBaseUtils import MysqlUtils import json import requests class YgApiHandler(BaseHandler,MysqlUtils): def post(self): print(self.get_args()) print(type(self.get_args())) path=self.get_args()["path"] print(path) self.quchen_text.execute(f"replace into yangguang_path (path) values ('{path}')") self.write(json.dumps({"code":200,"msg":"ok"}))