21 lines
378 B
Python
21 lines
378 B
Python
#!/usr/bin/env python
|
|
# -*- encoding: utf-8 -*-
|
|
'''
|
|
@File : app.py
|
|
@Author: liuyihui
|
|
@Email : liuyihui02@gmail.com
|
|
'''
|
|
|
|
# here put the import lib
|
|
from flask import Flask, request, render_template
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/', methods=["GET"])
|
|
def root():
|
|
return "Hello World!"
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True, host='0.0.0.0', port=4002)
|