换行标记(br)是XML和HTML之间区别的一个好例子。
The break tag (br) is an excellent example of the differences between XML and HTML. This line break is well-formed HTML, but not well-formed XML.
同样,像换行标记()和图片标记()这样的空元素结尾处需要具有一条斜线。
Also, empty elements like the break tag () and the image tag () need a closing slash (/).
三重引号中的字符串在行尾不需要换行标记,所有的格式都会包括在字符串中。
End of lines do not need to be escaped when using triple-quotes, but they will be included in the string.
应用推荐