testextractmethodglobaldeclared.py

来自「Python Development Environment (Python I」· Python 代码 · 共 29 行

PY
29
字号
class A:
    def test(self):
        a = True
        a = True
    
a = A()
a.test()

##c
'''
<config>
  <offset>54</offset>
  <selectionLength>8</selectionLength>
  <offsetStrategy>0</offsetStrategy>
</config>
'''

##r
class A:

    def pepticMethod(self):
        a = True

    def test(self):
        a = True
        self.pepticMethod()
    
a = A()
a.test()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?