自从把默认的头注释的author改成自己的名字以后越看越顺眼,但是发现名字下面一直有个波浪线,强迫症简直不能忍. 然后当你把鼠标放上去,再点击提示上的"more",会看到下面的提示: Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click 翻译过来就是:拼写检查器检查可以帮助查找拼写错误和拼写错误在您…
示例代码: class Car(object): # 未定义任何类属性 def move(self): # 方法会出现下划线提示This inspection detects any methods which may safely be made static. print("---车在移动---") def stop(self): print("---停车---") 原因是该方法不涉及对该类属性的操作,编译器建议声明为@staticmethod,面向对象思想体现…
输入第一行代码:import logging;logging.basicConfig(level==logging.INFO) 提示:this inspection detects names that should resolved but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-le…
python3出现问题: 警告: No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu (Alt+Enter). more... (Ctrl+F1) SQL dialect is not configured. PostgreSQL, SQL Server match best. more... (C…