06 2015 档案
摘要:先来段官方文档压压惊。。property(fget=None, fset=None, fdel=None, doc=None)Return a property attribute.fget is a function for getting an attribute value, likewise...
阅读全文
摘要:>>> a = ['ace',['age',10]]>>> b = a[:]>>> c = list(a)>>> for item in a:... print(id(item))... 140281621219736140281621134800>>> for item in b:...
阅读全文
摘要:In [8]: a = set('abcd')In [9]: b = set('ef')In [10]: def match(x,y): ....: for i in x: ....: for j in y: ....: if i==j: ...
阅读全文