#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)
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课