debug dairy
Beiwen_
这个作者很懒,什么都没留下…
展开
-
debug:could not convert ‘{1, 3}‘ from ‘<brace-enclosed initializer list>‘ to ‘std:vector不同dev怎么处理
以下针对不同版本的dev c++原创 2024-07-30 18:43:18 · 383 阅读 · 0 评论 -
debug:两种UndefinedBehaviorSanitizer执行错误
碰到这种错误直接尝试翻译英文:原创 2024-07-23 11:14:56 · 337 阅读 · 0 评论 -
Debug:两种AddressSanitizer:DEADLYSIGNAL
若在C++ 代码中,出现 AddressSanitizer:DEADLYSIGNAL 错误通常意味着程序试图访问它不应该访问的内存区域,这可能导致段错误(segmentation fault)。这个错误可能由多种原因引起,但通常是由于数组越界、解引用了无效的指针、或是栈溢出等情况。原创 2024-07-22 20:50:06 · 270 阅读 · 0 评论 -
debug:TypeError: string indices must be integers
分析:这种情况通常发生在我们试图对一个非字符串变量使用字符串索引时,故上面的情况上sql并非一个dict,故sql[‘where’]取到的不是一个integers。出现bug:if len(sql[‘where’]) > 0。此时检查代码处理即可。原创 2024-06-19 21:07:14 · 104 阅读 · 0 评论 -
AttributeError: module ‘torchtext‘ has no attribute ‘vocab‘
【代码】AttributeError: module ‘torchtext‘ has no attribute ‘vocab‘原创 2024-06-19 17:17:06 · 256 阅读 · 0 评论