Commit b60bb7d3 authored by 龚子荣's avatar 龚子荣

update

parent 912645a5
...@@ -4,20 +4,22 @@ ...@@ -4,20 +4,22 @@
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. # Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
import numpy import numpy
import time
from flask import Flask from flask import Flask
app = Flask(__name__) app = Flask(__name__)
@app.route("/api") @app.route("/api")
def hello_world(_x, _y): def index():
return { return {
"app": "numpy_api" "app": "numpy_api",
"timestamp": time.time()
} }
@app.route("/api/<_x>/<_y>") @app.route("/api/<_x>/<_y>")
def hello_world(_x, _y): def polyfit(_x, _y):
_sx = _x.split(",") _sx = _x.split(",")
_sy = _y.split(",") _sy = _y.split(",")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment