import sys
print "here is :",__file__,sys._getframe().f_lineno
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:python 获取当前代码行号