摘要:
1、 >>> a = dict(zip(("a","b","c","d"),(111,222,333,444))) >>> a {'a': 111, 'b': 222, 'c': 333, 'd': 444} >>> b = a ## 假复制 >>> b {'a': 111, 'b': 222, ' 阅读全文
摘要:
1、 >>> a = {"a":111,"b":222,"c":333,"d":444} >>> a {'a': 111, 'b': 222, 'c': 333, 'd': 444} >>> del a["a"] >>> a {'b': 222, 'c': 333, 'd': 444} >>> d 阅读全文
摘要:
1、 >>> a = dict(zip(("a","b","c","d"),(111,222,333,444))) >>> a {'a': 111, 'b': 222, 'c': 333, 'd': 444} >>> type(a) <class 'dict'> >>> a.clear() >>> 阅读全文