python
拉布拉多oop
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux下使用superisor监控进程
1. 安装(1)apt安装apt-get install supervisor(2) pip安装 pip install supervisor(3)easy_install安装 easy_install supervisor2.supervisor配置文件(1) /etc/supervisord.conf[unix_http_server]file=/tmp/supervisor.sock ;UNIX socket 文件,supervisorctl 会使用;chmod=0原创 2020-09-22 14:46:38 · 750 阅读 · 0 评论 -
python学习记录之sqlite3,数据库访问之路径问题:sqlite3.OperationalError: no such table: Account
本来我是这样写的:db_path = 'database.db'db_connect = sqlite3.connect(db_path)发现有时候会出现问题:sqlite3.OperationalError: no such table: Account而查看数据库发现表已经创建,却不能访问,这是因为路径问题造成的,改为:import os.path BASE_DIR = os.path.dirname(os.path.abspath(__file__)) db_path = os.pa原创 2020-06-16 18:41:30 · 1685 阅读 · 0 评论
分享