#encoding:utf-8 import os import sys import re import json import base64 import zlib import requests import flask def main(): if len(sys.argv)==1: print("usage: %s run.py"%sys.argv[0]) file = "run.py" else: file = sys.argv[1] exec(open(file, encoding="utf-8").read()) if "__main__"==__name__: main()
from flask import Flask app = Flask(__name__) @app.route("/", methods = ["GET"]) def index(): return "Hello World." app.run("0.0.0.0", 80)
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!