python處理json數(shù)據(jù) 如何用python讀取json文件里指定的數(shù)據(jù)?
如何用python讀取json文件里指定的數(shù)據(jù)?導(dǎo)入jsonwith open()who.json文件“,”r“)作為f:data=json.load文件(f) dependencies=k,v in
如何用python讀取json文件里指定的數(shù)據(jù)?
導(dǎo)入jsonwith open()who.json文件“,”r“)作為f:data=json.load文件(f) dependencies=k,v in的數(shù)據(jù)[“dependencies”]依賴關(guān)系.iteritems():打印(f “{k}@{v}”)