When you add whitespace to your documents , a parser processes more characters , which in the end affects parsing performance 当您将空格添加到文档中时,解析器就要处理更多的字符,从而最终影响解析过程的性能。
This formats the output by adding a newline carriage return and indented whitespace to produce a pretty - printed , human - readable form 这个功能通过添加换行回车符和缩进空格来对输出进行格式化,以生成美化的、可读性良好的格式。
For readability by developers , you can add vertical and horizontal whitespace to long attribute values without any problem in fact , you 对于开发人员,为了可读性,可以向长属性值添加垂直和水平空白,这不会有任何问题(事实上,
Between this non - ordering and whitespace handling , two documents that look completely different could actually contain the same data 因为这种无序性和空白处理的不同,两个看起来有天壤之别的文档可能实际上包含完全相同的数据。
For textual reports and log files , easily ignoring extraneous whitespace is quite useful - awk does something similar , but python s 对文本的报表和日志文件来说,轻松忽略掉没用的空格是非常有必要的awk有类似的功能,但是python的
Is a thin volume - 281 pages in physical size , but more lines of the books are taken up with source code and vertical whitespace than with prose description 很薄这本书厚281页,但是源代码和垂直空白所占据的行数超过文字描述。
Note that xpath handles the whole issue of sifting through the whitespace text nodes to get at the actual element nodes - it returns only the element nodes 请注意, xpath处理筛选空格文本节点以获得实际的元素节点它只返回元素节点。
Make your point as best you can , but take care to leave whitespace so the eyes have a resting place where they can digest what you ' ve said 在最大限度阐明要点的同时,不要忘了给用户的眼睛留有些空白,这样用户才有余地消化你所讲述的内容。