我有一个非常简单的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是什么。
谢谢, 伊甸园