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

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

  •  
  •   yibin001 · 2013-06-28 15:39:58 +08:00 · 2495 次点击
    这是一个创建于 4127 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://gist.github.com/yibin001/5883125

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


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

    p.s:gist怎么帖进来==!
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3225 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:28 · PVG 19:28 · LAX 04:28 · JFK 07:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.