python flask接口开发教程_Python中Flask-RESTful编写API接口(小白入门)
1.API接口:helloworld案例fromflaskimportFlaskfromflask_restfulimportApi,Resourceapp=Flask(__name__)api=Api(app)classHelloWorld(Resource):defget(self):return{"hello":"world"}api.add_resource(HelloWorld,"/")