
我的bug
GreenPill
鹅厂打工人.如果你吹牛可以@我,想内推也可以@我
展开
-
python运行unittest 提示AttributeError: ‘module‘ object has no attribute ‘‘xxxxxx“
运行我的单元测试 /data/apps/venv/bin/python2.7 -m unittest tests.logic.test_xxxxxx 抛出异常说: Traceback (most recent call last): File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib64/pytho原创 2021-05-23 14:12:24 · 1121 阅读 · 0 评论 -
git rebase合并提交记录
1. 本地整理提交记录(压缩提交记录) https://git-scm.com/book/zh/v2/Git-%E5%88%86%E6%94%AF-%E5%8F%98%E5%9F%BA 变基操作的实质是丢弃一些现有的提交,然后相应地新建一些内容一样但实际上不同的提交。 如果你已经将提交推送至某个仓库,而其他人也已经从该仓库拉取提交并进行了后续工作,此时,如果你用 git rebase 命令重新整理了提交并再次推送,你的同伴因此将不得不再次将他们手头的工作与你的提交进行整合,如果接下来你还要拉取并整合他们修原创 2021-05-06 14:42:34 · 1157 阅读 · 0 评论 -
sqlalchemy AttributeError: ‘property‘ object has no attribute ‘_bulk_update_tuples‘
AttributeError: ‘property’ object has no attribute ‘_bulk_update_tuples’ 问题 sqlalchemy执行update操作提示上述错误AttributeError: 'property' object has no attribute '_bulk_update_tuples' 查询 sf上有类似问题, 和sqlalchemy查询的关键字重名了,用@hybrid_property解决 传递参数类型错误,该传对象传了字符串 https:/原创 2021-03-05 11:22:07 · 2030 阅读 · 0 评论