如这句代码的endswith: fname.endswith('.gz')
在pycharm中按F3查看到的源码是:
def endswith(self, suffix, start=None, end=None): # real signature unknown; restored from __doc__
"""
S.endswith(suffix[, start[, end]]) -> bool
Return True if S ends with the specified suffix, False otherwise.
With optional start, test S beginning at that position.
With optional end, stop comparing S at that position.
suffix can also be a tuple of strings to try.
"""
return False
这个应该是父类的方法,怎么去看实质被调用的方法呢?
python怎么查看被改写后的方法?
答案:1 悬赏:50
解决时间 2021-02-23 06:14
- 提问者网友:傲气稳全场
- 2021-02-22 21:09
最佳答案
- 二级知识专家网友:嗷呜我不好爱
- 2021-02-22 21:38
看 frame 是什么类咯,
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯