您现在的位置是:课程教程文章
python XML数据是什么
2023-12-14 21:49课程教程文章 人已围观
GAMIT/GLOBK 10.71处理GNSS/GPS数据入门介绍及简
GAMIT/GLOBK 10.71处理GNSS/GPS数据入门介绍及简GAMIT/GLOBK 10.71介绍 GAMIT/GLOBK软件申请(如何申请和注意事项) 需要掌握的Linux背...Python程序设计及应用
Python程序设计及应用Python 是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。...MySQL数据库项目实战
MySQL数据库项目实战汇智动力学院于2014年创立,总部位于美丽的天府之国——成都。目前有成都总...Python基础入门+爬虫+数据分析+项目实战
Python基础入门+爬虫+数据分析+项目实战...
1、概念
XML 格式的数据既便于机器读取,也便于人工读取。
xml 格式说明:
Tag: 使用<和>包围的部分;
Element:被Tag包围的部分,如 2003,可以认为是一个节点,它可以有子节点;
Attribute:在Tag中可能存在的 name/value 对,如示例中的 title="Enemy Behind",一般表示属性。
2、实例
<?xml version="1.0" encoding="UTF-8"?> <collection shelf="New Arrivals"> <movie title="Enemy Behind"> <type>War, Thriller</type> <format>DVD</format> <year>2003</year> <rating>PG</rating> <stars>10</stars> <description>Talk about a US-Japan war</description> </movie> <movie title="Transformers"> <type>Anime, Science Fiction</type> <format>DVD</format> <year>1989</year> <rating>R</rating> <stars>8</stars> <description>A schientific fiction</description> </movie> <movie title="Trigun"> <type>Anime, Action</type> <format>DVD</format> <episodes>4</episodes> <rating>PG</rating> <stars>10</stars> <description>Vash the Stampede!</description> </movie> <movie title="Ishtar"> <type>Comedy</type> <format>VHS</format> <rating>PG</rating> <stars>2</stars> <description>Viewable boredom</description> </movie> </collection>
以上就是python XML数据的介绍,希望对大家有所帮助。更多Python学习指路:python基础教程
本文教程操作环境:windows7系统、Python 3.9.1,DELL G3电脑。
课程教程:python XML数据是什么下一篇:没有了