python调试-如何打印行号

2017-12-13  本文已影响0人  步履不停的Suunny

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

上一篇 下一篇

猜你喜欢

热点阅读