@app.route('/book/<string:book_id>')
def book(book_id):
book_data = logic.get_book(book_id)
return book_data
@app.route('/students')
def students():
students_data = logic.get_students()
return students_data
def book(book_id):
book_data = logic.get_book(book_id)
return book_data
@app.route('/students')
def students():
students_data = logic.get_students()
return students_data
2018-03-23
run.py
#coding=utf-8
from flask import Flask
app = Flask(_name_
import logic
@app.route('/')
def home_page():
home_data = logic.get_home()
return home_data
@app.route('/books')
def books():
books_data = logic.get_books()
return books_data
#coding=utf-8
from flask import Flask
app = Flask(_name_
import logic
@app.route('/')
def home_page():
home_data = logic.get_home()
return home_data
@app.route('/books')
def books():
books_data = logic.get_books()
return books_data
2018-03-23
资料
Flask深入学习资料
Flask 官方网站:http://docs.jinkan.org/docs/flask/
Flask 大型教程项目:http://www.pythondoc.com/flask-mega-tutorial/
stack overflow: http://stackoverflow.com/questions/tagged/flask
Flask深入学习资料
Flask 官方网站:http://docs.jinkan.org/docs/flask/
Flask 大型教程项目:http://www.pythondoc.com/flask-mega-tutorial/
stack overflow: http://stackoverflow.com/questions/tagged/flask
2018-03-23
最新回答 / 天天_
https://scotch.io/bar-talk/best-sublime-text-3-themes-of-2015-and-2016 可以设置自己喜欢的。
2018-03-03
flist = cp.get("formatters", "keys")
File "/usr/lib64/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'formatters'
[formatters]
keys=simpleFormatter
File "/usr/lib64/python2.7/ConfigParser.py", line 607, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'formatters'
[formatters]
keys=simpleFormatter
2018-02-26