小编Cos*_*ied的帖子

错误被杀:命令"git add"后9.

我做"git add"时遇到问题.我收到错误消息"Killed:9".如果我再试一次"git add".我收到了另一个错误:

致命:无法创建'./crmeasy/.git/index.lock':文件存在.

Another git process seems to be running in this repository, 
e.g. an editor opened by 'git commit'. Please make sure all 
processes are terminated then try again. 
If it still fails, a git process may have crashed in this 
repository earlier: remove the file manually to continue.
Run Code Online (Sandbox Code Playgroud)

如果我删除./.git/index.lock文件并再试一次,我会收到相同的错误周期.我尝试提交新的空Django项目virtualenv目录.我怎么能解决这个问题?

git django virtualenv

8
推荐指数
1
解决办法
3057
查看次数

我如何检查 - 我的 SQLite3 数据库是否为空?

我正在使用 Python 2.7 和 SQLite3。当我开始使用数据库时,我想检查 - 我的数据库是否为空。我的意思是它是否已经有任何桌子了。

我的想法是使用任何表中的简单 SELECT。并将此选择包装在 try:exception 块中。因此,如果引发异常,那么我的数据库为空。

也许有人知道更好的检查方法?

python sqlite

3
推荐指数
1
解决办法
2895
查看次数

标签 统计

django ×1

git ×1

python ×1

sqlite ×1

virtualenv ×1