python打印行号

python打印行号

import sys

print("运行到行号:",sys._getframe().f_lineno)

猜你喜欢

转载自blog.csdn.net/mao_hui_fei/article/details/123873351