@app.route('/user/<username>')defshow_user_profile(username):# show the user profile for that userreturn'User %s'%username@app.route('/post/<int:post_id>')defshow_post(post_id):# show the post with the given id, the id is an integerreturn'Post %d'%post_id