Python中的OS,json,re等模块4-xml模块介绍
1.xml文件 < data > < country name = "Liechtenstein" > < rank updated = "yes" > 2 < / rank > < year updated = "yes" > 2010 < / year > < gdppc > 141100 < / gdppc > < neighbor direction = "E" name = "Austria" / > < neighbor direction = "W" name = "Switzerland" / > < / country > < country name = "Singapore" > < rank updated = "yes" > 5 < / rank > < year updated = "yes" > 2013 < / year > < gdppc > 59900 < / gdppc > < neighbor direction = "N" name = "Malaysia" / > < / country > < country name = "Panama" > < rank updated = "yes" > 69 < / rank > < year updated = "yes" > 2013 < / year > < gdppc > 13600 <