老男孩教育k8s2期
安裝flask
安裝flask也是一條語(yǔ)句
pip install flask
然后寫(xiě)一個(gè)簡(jiǎn)單的helloWorld
from flask import Flask
app = Flask(__name__)@app.route("/helloWorld")def helloWorld():
? ?return "Hello World"if __name__ == '__main__':
標(biāo)簽:
安裝flask也是一條語(yǔ)句
pip install flask
然后寫(xiě)一個(gè)簡(jiǎn)單的helloWorld
from flask import Flask
app = Flask(__name__)@app.route("/helloWorld")def helloWorld():
? ?return "Hello World"if __name__ == '__main__':