python程序详细描述_如何逐行描述Python代码?
慕函數(shù)4003404
我相信這就是Robert Kern的line_profiler的目的。從鏈接:File: pystone.pyFunction: Proc2 at line 149Total time: 0.606656 sLine #? ? ? Hits? ? ? ? ?Time? Per Hit? ?% Time? Line Contents==============================================================? ?149? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?@profile? ?150? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?def Proc2(IntParIO):? ?151? ? ?50000? ? ? ? 82003? ? ? 1.6? ? ?13.5? ? ? IntLoc = IntParIO + 10? ?152? ? ?50000? ? ? ? 63162? ? ? 1.3? ? ?10.4? ? ? while 1:? ?153? ? ?50000? ? ? ? 69065? ? ? 1.4? ? ?11.4? ? ? ? ? if Char1Glob == 'A':? ?154? ? ?50000? ? ? ? 66354? ? ? 1.3? ? ?10.9? ? ? ? ? ? ? IntLoc = IntLoc - 1? ?155? ? ?50000? ? ? ? 67263? ? ? 1.3? ? ?11.1? ? ? ? ? ? ? IntParIO = IntLoc - IntGlob? ?156? ? ?50000? ? ? ? 65494? ? ? 1.3? ? ?10.8? ? ? ? ? ? ? EnumLoc = Ident1? ?157? ? ?50000? ? ? ? 68001? ? ? 1.4? ? ?11.2? ? ? ? ? if EnumLoc == Ident1:? ?158? ? ?50000? ? ? ? 63739? ? ? 1.3? ? ?10.5? ? ? ? ? ? ? break? ?159? ? ?50000? ? ? ? 61575? ? ? 1.2? ? ?10.1? ? ? return IntParIO希望有幫助!
總結(jié)
以上是生活随笔為你收集整理的python程序详细描述_如何逐行描述Python代码?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为什么/dev/shm中看不到shmge
- 下一篇: 微信联系人可以隐藏吗(微信公众平台)