testextractmethod9.py
来自「Python Development Environment (Python I」· Python 代码 · 共 37 行
PY
37 行
class A(B,
C):
def test(self):
print "Initializing A"
anAttribute = "hello"
def myMethod(self):
print self.anAttribute
a = A()
a.test()
##c
'''
<config>
<offset>51</offset>
<selectionLength>22</selectionLength>
<offsetStrategy>0</offsetStrategy>
</config>
'''
##r
class A(B,
C):
def pepticMethod(self):
print "Initializing A"
def test(self):
self.pepticMethod()
anAttribute = "hello"
def myMethod(self):
print self.anAttribute
a = A()
a.test()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?