python 输出当前行号

import sys  
print sys._getframe().f_lineno 

 



 

 

 

 

 

 

 

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

posted @ 2017-05-14 14:27  泽锦  阅读(9311)  评论(0编辑  收藏  举报