转载一篇清晰的博客:https://www.cnblogs.com/rgcLOVEyaya/p/RGC_LOVE_YAYA_603days_1.html 安装: pip install -U memory_profiler