What is the specific purpose of the method=[“POST”] in the decorator/function below? @app.route(“/endpoint”, methods=[“POST”]) def func():单项选择题
A
It allows us to provide data to the user when they request at this endpoint
B
It allows the user to delete data when they request at this endpoint
C
It allows the user to upload data when they request at this endpoint
D
It allows us to show users’ posts when the endpoint is added to the end of our site URL
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
Suppose a Flask app has the following routes. What will print when a user visits home.html? @app.route(“/img.svg”) def svg(): print(“A”) return “” @app.route(“/img.png”) def png(): print(“B”) return “” @app.route(“/home.html”) def home(): print(“C”) return “<html><body><p>img.png</p><img src=”img.svg”></body></html>”
Question at position 1 Flask uses decorators to link a function to a URL. Fill in the blank to correctly define a route for the homepage ("/") that uses the index function to return "Hello, World!". @Question Blank 1 of 1[input]def index(): return 'Hello, World!'
How did Egyptian culture and governance change during the Ptolemaic period compared to the pharaonic period?
Name the Supreme Court decision that removed financial constraints on PACs.
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!