from flask import Flask
app = Flask(__name__)

#最簡單的方式
# @app.route('/')
# def hello_world():
#    return 'Hello World 12345'

#url 指往function
# http://127.0.0.1:5000/hello
# @app.route('/hello')
# def hello_world():
#    return 'first project'

# 這個方式怪怪的
def hello_world():
   return 'first project'
app.add_url_rule('/test', '', hello_world)

if __name__ == '__main__':
   app.run()
66a40d3e73dccc06e9553dd03b4406722b105ec4
<mask token>


def hello_world():
    return 'first project'


<mask token>

<mask token>


def hello_world():
    return 'first project'


app.add_url_rule('/test', '', hello_world)
if __name__ == '__main__':
    app.run()

<mask token>
app = Flask(__name__)


def hello_world():
    return 'first project'


app.add_url_rule('/test', '', hello_world)
if __name__ == '__main__':
    app.run()

from flask import Flask
app = Flask(__name__)


def hello_world():
    return 'first project'


app.add_url_rule('/test', '', hello_world)
if __name__ == '__main__':
    app.run()

from flask import Flask
app = Flask(__name__)

#最簡單的方式
# @app.route('/')
# def hello_world():
#    return 'Hello World 12345'

#url 指往function
# http://127.0.0.1:5000/hello
# @app.route('/hello')
# def hello_world():
#    return 'first project'

# 這個方式怪怪的
def hello_world():
   return 'first project'
app.add_url_rule('/test', '', hello_world)

if __name__ == '__main__':
   app.run()