摘要:
1 >>> a={1:'a',2:'b'}2 >>> 1 in a3 True4 >>> 'a' in a5 False6 >>> 2 in a7 True8 >>> 即可以判断某个键是否存在于字典中;1 >>> a.has_key(1)2 Traceback (most recent call l... 阅读全文
摘要:
1 1 >>> line2=['10.235186', '11.321997']2 2 >>> line3=[list(map(lambda x:float(x),line2))];3 3 >>> line34 4 [[10.235186, 11.321997]]注意:1 >>> map(lambd... 阅读全文