'æŽæ°çšæ·æ°æ®: curl http://127.0.0.1:5000/users/1 -X PUT -d "name=Allen&age=20" -H "Authorization: token fejiasdfhu"'

def put(self, user_id):

    args = parser_put.parse_args()
    user_ids_set = set([user.id for user in session.query(User.id)])
    print user_ids_set
    if (user_id not in user_ids_set):
        return (None, 404)
    user = session.query(User).filter((User.id == user_id))[0]
    user.name = args['name']
    user.age = args['age']
    session.merge(user)
    session.commit()
    return (get_json(user), 201)
