4 day

cd pycharm-community-5.0.3/bin

sudo ./pycharm.sh

start pycharm IDE

 

 

2016.3.5
from flask import redirect

@app.route('/')
def index():
    return redirect('http://www/example.com')

from flask import abprt
@app.route('/user/<id>')
def get_user(id):
    user = load_user(id)
if not user:
    abort(404)
    return '<h1>hello,%</h1>' % user.__name__

 

发表评论

电子邮件地址不会被公开。