诊断代码PreferUppercaseConstant本页总览PreferUppercaseConstant 等级:提示 常量 $0 建议使用大写 如何修复 常量 PI E 推荐使用大写。 修改前 let c = 2 * pi * 5; 修复后 let c = 2 * PI * 5;