Python论坛  - 讨论区

标题:[python-chinese] cherrypy:i can't debug "helloworld."?

2006年05月31日 星期三 14:12

=?ISO-2022-JP?B?GyRCQmdPOhsoQg==?= iexper at gmail.com
Wed May 31 14:12:08 HKT 2006

Z。Q:

照抄了几行源代码

> import cherrypy
>
> class HelloWorld:
>     def index(self):
>         return "we have an messeage\n"
>     index.exposed = True
>
>     def showmessage(self):
>         return "foo!"
>     showmessage.exposed=True
>
>
> cherrypy.root = HelloWorld()
>
> if __name__ == '__main__':
>     cherrypy.server.start()
>

cmd:

D:\cherrypy>python helloworld.py
31/May/2006:13:56:24 HTTP INFO Serving HTTP on http://localhost:9000/
http://127.0.0.1:9000/
我在这个页面什么也刷不出来。晕倒了。

-- 
IT民工
blog:http://www.iexper.com/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060531/f8419f4b/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号