所以我正在尝试创建一个函数来跟踪调用方法的次数.例如:
a = [1,2,3,4] a.pop()
我想知道a.pop()到目前为止被调用了多少次,所以对于这个例子,我会得到1.有没有办法做到这一点?
python
python ×1