效果如图 代码见Github:https://github.com/OhZLee/switch_cpu_monitor.git 转载于:https://www.cnblogs.com/OhLee/p/5578857.html