I know that print(e)
(where e is an Exception) prints the occurred exception
but, I was trying to find the python equivalent of Java's e.printStackTrace()
that exactly traces the exception to what line it occurred and prints the entire trace of it.
Could anyone please tell me the equivalent of e.printStackTrace()
in Python?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…