testselectionextensioncontroltrypart.py
来自「Python Development Environment (Python I」· Python 代码 · 共 35 行
PY
35 行
class A:
def test(self):
a = 1
try:
print a
print "foo"
except:
print b
print "bar"
else:
print "hopefully"
finally:
print "it works"
var = a * a
print var
def myMethod(self):
print self.anAttribute
a = A()
a.test()
##c selection starts at the first char, but we have to normalize indentation!
'''
<config>
<offset>51</offset>
<selectionLength>33</selectionLength>
</config>
'''
##r
# Invalid selection:
# try:
# print a
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?