打印外部库的堆栈跟踪

时间:2019-01-19 18:26:07

标签: python python-3.x

我有一个非常简单的python应用程序,它可以调用另一个库。我想打印该调用的调用路径(堆栈跟踪)。我该如何在python中做到这一点?

针对:

        let s = """
        Who composed the
        popular song "Aati Kya
        Khandala" from 'Ghulam"?
        Jatin- Lalit
        Abhijeet
        Aamir Khan
        """

        let replaceString = "sagarduhanishere"

        let nextS = s.replacingOccurrences(of: "(\n.*){3}$", with: "\n\(replaceString)$0", options: .regularExpression  , range: nil)

        print(nextS)

我想看看里面的strptime是什么。

谢谢, 伊甸园

0 个答案:

没有答案