yibin001
V2EX  ›  问与答

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

  •  
  •   yibin001 · Jun 28, 2013 · 2867 views
    This topic created in 4714 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   ·   4163 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:20 · PVG 13:20 · LAX 22:20 · JFK 01:20
    ♥ Do have faith in what you're doing.