📄 testextractmethodmodule2.py
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -