Pythonの印刷行番号

Pythonの印刷行番号

import sys

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

おすすめ

転載: blog.csdn.net/mao_hui_fei/article/details/123873351