testextractmethodmodule2.py
来自「Python Development Environment (Python I」· Python 代码 · 共 37 行
PY
37 行
from shape import Shape
def testValidShape(shape):
pass
class BetterShape(shape.Shape):
pass
shape = BetterShape(30, 30)
print shape
testValidShape(shape)
##c extract method from module body
'''
<config>
<offset>104</offset>
<selectionLength>39</selectionLength>
<offsetStrategy>0</offsetStrategy>
</config>
'''
##r
from shape import Shape
def pepticMethod():
shape = BetterShape(30, 30)
print shape
return shape
def testValidShape(shape):
pass
class BetterShape(shape.Shape):
pass
shape = pepticMethod()
testValidShape(shape)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?