点击“设置”

2

点击“隐私”

3

找到“分析”打开

4

点击“分析数据”

5

找到log-aggregated开头的文件打开

6

找到“com.apple.snapshot.battery.maxCapacity”,下面就是显示容量的代码。