
python
VV爱吃肉爱写码
作个温缓纯良的程序媴
展开
-
python line_profiler 代码性能分析、 memory_profiler 代码内存消耗分析
作用按行分析代码性能消耗,主要是时间安装pip install line_profilerpip install wrapt使用写一个单独的装饰器,代码如下:import wraptfrom line_profiler import LineProfilerlp = LineProfiler()def lineprofile_wrapper(): @wrapt.decorator def wrapper(func,instance,args,kwar原创 2020-05-15 14:21:19 · 703 阅读 · 0 评论 -
pycharm 报错
报错突然有一天,pycharm出现了不停的indexing我以为是解释器的问题,想重新配置一下。然后发现又报了一个错:project level deployment servers are not currently supported. please create one of two links above.凉。。折腾了一个小时左右引入问题的原因我之前有代码在其他项目...原创 2019-08-26 16:55:40 · 4711 阅读 · 4 评论