Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

1.12. Python 调试技巧

1.12.1. 显示代码所在文件行

		
#!/usr/bin/python
import sys

print("=" * 50)
print("here is :", __file__, sys._getframe().f_lineno)
print("=" * 50)