首页 > 代码库 > python 输出当前行号

python 输出当前行号

import sys  print sys._getframe().f_lineno 

 



 

 

 

 

 

 

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

python 输出当前行号