我正在用Python编程,我想知道是否可以在我的代码中测试是否调用了函数
def example(): pass example() #Pseudocode: if example.has_been_called: print("foo bar")
我该怎么做呢?
https://stackoverflow.com/questions/9882280
相似问题