📅  最后修改于: 2022-03-11 14:46:07.224000             🧑  作者: Mango
#Import Flask, if not then install and import.
import os
try:
from flask import *
except:
os.system("pip3 install flask")
from flask import *
app = Flask(__name__)
@app.route("/")
def index():
return "Hello World
"
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080, debug=False)