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

update

parent 912645a5
......@@ -4,20 +4,22 @@
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
import numpy
import time
from flask import Flask
app = Flask(__name__)
@app.route("/api")
def hello_world(_x, _y):
def index():
return {
"app": "numpy_api"
"app": "numpy_api",
"timestamp": time.time()
}
@app.route("/api/<_x>/<_y>")
def hello_world(_x, _y):
def polyfit(_x, _y):
_sx = _x.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