⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testextractmethodmodule2.py

📁 Python Development Environment (Python IDE plugin for Eclipse). Features editor, code completion, re
💻 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 + -