2021年12月20日

python 编译反编译

摘要: def test(): print(1+1) if __name__ == '__main__': test() ''' pip install uncompyle6 编译 python -m py_compile test.py 生成test.pyc文件 反编译 uncompyle6 test.p 阅读全文

posted @ 2021-12-20 14:53 HHMLXL 阅读(214) 评论(0) 推荐(0)

python 代码逐行耗时分析

摘要: @profile def test(): print(1+1) if __name__ == '__main__': test() ''' pip install line_profiler kernprof -l -v test.py -l 逐行分析 -v 输出 Wrote profile res 阅读全文

posted @ 2021-12-20 14:43 HHMLXL 阅读(178) 评论(0) 推荐(0)

导航