python 获取当前代码行号


import sys  
print "here is :",__file__,sys._getframe().f_lineno