摘要:
Web.py Form库文档 和 示例代码 :http://webpy.org/form 参考 http://blog.csdn.net/freeking101/article/details/76148434 这篇文章改写成 Web.py 搭建测试网站 先看 官网一个使用 Form 表单的示例(c 阅读全文
摘要:
From:https://www.oschina.net/question/5189_4306 Web.py github 地址:https://github.com/webpy/webpy https://pypi.python.org/pypi/web.py Web.py Cookbook 简体 阅读全文
摘要:
数据库 Web.py 更多关于数据库的操作:http://webpy.org/cookbook/index.zh-cn 注意:在你开始连接数据库之前,请先安装正确的数据库驱动。比如 MySQLdb、psycopg2。如果需要尝试连接 池(database pool)功能,还得装下DBUtils。这几 阅读全文
摘要:
函数-$def 函数定义也是与在python中类似,用def,只是也要在前面加$,代码也要注意$的使用和缩进: 1 $def hello(name=""): 2 Hello $name! 函数调用也是用$加函数名的形式: 1 $hello("Lisa") 当然,定义函数时也可以与html代码混编: 阅读全文