📄 testextractmethod2.py
字号:
class A:
def test(self):
a = 10
print a
anAttribute = "hello"
def myMethod(self):
print self.anAttribute
a = A()
a.test()
##c
'''
<config>
<offset>52</offset>
<selectionLength>7</selectionLength>
<offsetStrategy>0</offsetStrategy>
</config>
'''
##r
class A:
def pepticMethod(self, a):
print a
def test(self):
a = 10
self.pepticMethod(a)
anAttribute = "hello"
def myMethod(self):
print self.anAttribute
a = A()
a.test()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -