介绍
在python中使用sql时,如果只是返回row信息,对于程序开发并不方便,如果要返回完整字典可参考如下
1 | def dict_factory(cursor, row): |
基于以上,然后创建表
1 | DB_NAME = initRes.SQLITEPATH + '/account.db' |
这样再和web交互的json定义中就可以方便的使用数据库信息
世事多变,我心中自有主见
在python中使用sql时,如果只是返回row信息,对于程序开发并不方便,如果要返回完整字典可参考如下
1 | def dict_factory(cursor, row): |
基于以上,然后创建表
1 | DB_NAME = initRes.SQLITEPATH + '/account.db' |
这样再和web交互的json定义中就可以方便的使用数据库信息
微信支付
支付宝