Python技术相关的bottle框架自带服务器例子脚本提示takes no arguments 1 given 错误

Python开发环境下安装了bottle框架,输入例子:

from bottle import error, route, run

@route('/hello')
@error(404)
def hello():

    return 'hello world.'

run(host='localhost', port=8082, debug=True, reloader=True)

结果网页提示takes no arguments 1 given 错误,原因是def hello()需要self参数,填写self参数后正常