V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yibin001
V2EX  ›  问与答

python里基类能调用父类的方法??

  •  
  •   yibin001 · 2013 年 6 月 28 日 · 2702 次点击
    这是一个创建于 4582 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://gist.github.com/yibin001/5883125

    输出:
    这是父类的方法
    test
    这不科学么。。。。。
    请按任意键继续. . .


    为什么会这样?
    为什么在BaseClass.BaseMethod里能调用父类的test方法?

    p.s:gist怎么帖进来==!
    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5618 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:47 · PVG 14:47 · LAX 22:47 · JFK 01:47
    ♥ Do have faith in what you're doing.