python监视代码的内存消耗模块Memory Profiler使用及TypeError: 'module' object is not callable错误处理
一、安装包pip install memory_profiler #在pycharm中我尝试需要安装memory-profiler才可以pip install psutil #可以提升memory-profiler性能二、使用在需要监视的程序前面添加修饰符1.导入包from memory_profiler import profile2.修饰需要监视的程序:...
原创
2019-06-10 11:09:45 ·
1169 阅读 ·
0 评论