把做工程过程重要的一些代码做个记录,下边代码内容是关于python使用Flask框架的简单入门范例的代码。

import os
# Using Flask since Python doesn't have built-in session management
from flask import Flask, session

app = Flask(__name__)

# Generate a secret random key for the session
app.secret_key = os.urandom(24)

@app.route('/')
def index():
  return "Hello world"

if __name__ == '__main__':
    app.run( 
        host="0.0.0.0",
        port=int("80")
  )