📜  烧瓶页面 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:29.682000             🧑  作者: Mango

代码示例4
from flask import Flask        # Imports flask
app = Flask(__name__)        # Setting up the app

@app.route('/')                # Sets the route for the page
def hello_world():            
    return 'Hello, World!'    # Returns 'Hello, World' wheen
                            # you go to the '/' or main page