用pyCharm時,常會出現警告信息:
function name should be lowercase --函數名應該是小寫 字母
argument name should be lowercase --參數名應該是小寫字母
variable in function should be lowercase --變量應該是小寫字母
解決方法:
File →Settings→Editor→Inspections→Python→PEP 8 naming convention violation
右下角有個"Ignored errors",增加:
N802
N803
N806
分別對應上面的三種提示。