def testfn(): # GET request if request.method == 'GET': message = {'greeting':'Hello from Flask!'} return jsonify(message) # serialize and use JSON headers ...
確定! 回上一頁