Duplicated code fragment (10 lines long)
时间: 2023-09-07 09:18:30 浏览: 202
DuplicateLines:揪出万恶的重复代码
5星 · 资源好评率100%
Duplicated code fragment (10 lines long)是指代码中重复出现的长度为10行的代码片段。解决这个问题的方法是在编辑器的设置中取消对General下面的Duplicated code fragment的勾选。另外一个解决方案是通过打开文件,点击设置,选择编辑器,点击一般,然后取消勾选Duplicated Code fragment。这样做可以避免代码中出现重复的片段,提高代码的质量和可读性。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [Duplicated code fragment (9 lines long)](https://blog.csdn.net/weixin_49122171/article/details/127869935)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Python报警代码处理-- Duplicated code fragment(xxx lines long)](https://blog.csdn.net/weixin_37493499/article/details/118637202)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文