yibin001
V2EX  ›  问与答

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

  •  
  •   yibin001 · Jun 28, 2013 · 2864 views
    This topic created in 4713 days ago, the information mentioned may be changed or developed.
    https://gist.github.com/yibin001/5883125

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


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

    p.s:gist怎么帖进来==!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3642 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:59 · PVG 12:59 · LAX 21:59 · JFK 00:59
    ♥ Do have faith in what you're doing.