摘要:
simple_markup.py handler_first.py handler.py markup.py rules.py util.py test_input.py 1 Welcome to World Wide Spam, Inc. 2 3 These are the corporate w 阅读全文
摘要:
__getitem__和__setitem__: 这个方法返回与指定键想关联的值。对序列来说,键应该是0~n-1的整数,其中n为序列的长度。对映射来说,键可以是任何类型。 class A : __getitem__: print(x) 实例化 a = A(),则a[y]就会调用这个方法 阅读全文