yibin001
V2EX  ›  问与答

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

  •  
  •   yibin001 · Jun 28, 2013 · 2931 views
    This topic created in 4775 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   ·   2751 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 10:29 · PVG 18:29 · LAX 03:29 · JFK 06:29
    ♥ Do have faith in what you're doing.