debug记录
debug
AquilaEAG
时间并不会改变什么,行动才会
展开
-
python list浅拷贝踩坑
如下:data = {"a": [], "b": [1, 2, 3]}a = data.get('a')a.extend(data.get('b'))print(data)输出:{'a': [1, 2, 3], 'b': [1, 2, 3]}修复:import copydata = {"a": [], "b": [1, 2, 3]}a = copy.deepcopy(data.get('a'))a.extend(data.get('b'))print(data)输出原创 2022-01-16 12:58:42 · 339 阅读 · 0 评论 -
golang fmt.Sprintf 换行踩坑
authorization := fmt.Sprintf(`Digest username="%s", realm="%s", nonce="%s", uri="%s", cnonce="%s", nc="%v", qop="%s", response="%s"`, d["username"], d["realm"], d["nonce"], d["uri"], cnonce, nonceCount, d["qop"], response)authorization := fmt.Sprintf(原创 2021-11-09 14:57:11 · 1990 阅读 · 1 评论 -
Phycharm debug调试报错:Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
问题:没有正确配置Debug Configuration->检查Run/Debug工具栏恢复工具栏参考:https://jingyan.baidu.com/article/295430f1671c334c7e00508e.htmlgood luck!原创 2021-08-16 23:02:06 · 765 阅读 · 0 评论 -
QT程序报错 Debug Error abort() has been called
1.报错问题报错位置:代码流程:在主线程中触发一个槽函数,执行数据转换的功能;在该槽函数中,通过子线程拉起数据转换的函数,即RenderThread::Run();槽函数原有代码中,不等待转换结束,数据转换留在后台进行,槽函数直接结束。2.报错原因用thread创建的多线程,在子线程中,控制主程序退出,如果没有等到子线程执行并结束线程,报错:Debug Error! Abort() has been called.3.报错解决修改槽函数,等待数据转换的线程结束后,再结束,如下原创 2021-05-02 11:05:47 · 5435 阅读 · 1 评论