python 输出当前行号

2017-10-12  本文已影响68人  天天向上的小M
python 输出当前行号

import sys

print sys._getframe().f_lineno

上一篇 下一篇

猜你喜欢

热点阅读