Skip to content

Instantly share code, notes, and snippets.

@ctosib
Last active December 14, 2016 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctosib/8f35670a137d7ce51d418db6005feeac to your computer and use it in GitHub Desktop.
Save ctosib/8f35670a137d7ce51d418db6005feeac to your computer and use it in GitHub Desktop.
Flask的第一個程式
from flask import Flask
app = Flask(__name__)
@app.route("/" , methods=['GET'])
def index():
return "hello world", 200
if __name__=='__main__':
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment