开发者

How can I create a user-password login webpage using python bottle

开发者 https://www.devze.com 2023-02-16 05:07 出处:网络
when I run the following 开发者_开发知识库code it ended in Import error:cannot import name route

when I run the following 开发者_开发知识库code it ended in Import error:cannot import name route Can anyone help me??

from bottle import route, run

@route('/:name')
def index(name='World'):
    return '<b>Hello %s!</b>' % name

run(host='localhost', port=8080)


That example program is awful. It contains a cross-site scripting attack.

My guess is that you named the file you put your program in bottle.py. Either that or you haven't installed bottle.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号