“你好世界”节目瓶子.py

2024-05-18 08:36:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我刚试过快速入门:“你好,世界!”教程瓶子.py(http://bottlepy.org/docs/dev/tutorial.html#quickstart-hello-world

但我得到了这样一个错误:

  Traceback (most recent call last):
  File "first.py", line 1, in <module>
    from bottle import route, run
  File "/home/sid/bottle.py", line 3, in <module>
    @route('/hello/<name>')
NameError: name 'route' is not defined

Tags: nameinpyhttp瓶子bottlehelloline