Python字典和集合

判断字典的元素 使用in 或者not in 和has_key()函数来判断python >>> Dict={'one':1,'tow':2} >>> 'one' in Dict True >>> Dict.has_key('one') True >>> 'one' not in Dict False 更新字典web >>> Dict['one']=11 >>> Dict['three']=33 >
相关文章
相关标签/搜索