【发布时间】:2018-11-23 17:01:15
【问题描述】:
我有一个烧瓶应用程序
@app.route("/hello")
def generater():
return "hello world"
if __name__ == '__main__':
app.run()
我的应用程序运行良好,但我想知道在编译代码时如何向http://127.0.0.1:5000/hello 发出请求
【问题讨论】:
-
“编译”是什么意思?
-
当我执行命令 python hello.py 时,会发生的第一件事是它会转到 localhost:port/hello 并且它会返回 hello world 而我不必去网页并输入本地主机/你好