使用PyCharm(或IDEA等)时,会自动检查重复的代码,看着很不习惯!!
Preferences——Editor——Inspections——General——Duplicated code fragment,取消勾选
Enjoy!!