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 >
相關文章
相關標籤/搜索