Discuss / Python / 廖神day05代码,执行完毕之后访问链接报404错误

廖神day05代码,执行完毕之后访问链接报404错误

Topic source

难道是我的访问链接出了错误,我的访问链接是:http://127.0.0.1:9000/index 用localhost也不行,是不是代码有毒啊,我的python版本是 3.6.0a3,请大神们指点下啊,都无奈了

我也是这个问题,不管写什么handlers,都是404错误,不知道哪出了问题。有没有大神知道一下。

梦炸

#3 Created at ... [Delete] [Delete and Lock User]

去coroweb.py下看看你们的这段代码有没有写错

def get(path): ''' Define decorator @get('/path') ''' def decorator(func): @functools.wraps(func) def wrapper(args, **kw): return func(args, **kw) wrapper.method = 'GET' wrapper.route = path return wrapper return decorator


  • 1

Reply