此外,所有的标记属性都必须有一个起始引号和结束引号,并且这些标记都必须被括住,如在HTML开发中那样。
Additionally, all tag attributes must have a start and an end quote, and tags must not become entangled, as happens so often in HTML development.
第一,在创建字符串时,您可以混合使用单引号和双引号,只要字符串在开始位置和结束位置使用同一类型的引号。
First, you can mix single and double quotation marks when creating a string, as long as the string USES the same type of quotation mark at the beginning and end.
如果字符串是以单引号开始,那么必须以单引号结束,反之亦然。
If you start a string with a single quotation mark, you must end with a single quotation mark, and vice versa.
字符串在Python中,是以一个开引号开始,然后后面是一系列的字符,以一个尾引号结束。
Strings are captured in Python with an open quote and some sequence of characters followed by a closed quote.
注:在开始和结束的标签组成中缺少关键字符,比如:一个右尖括号、属性值不匹配或者双引号不完整。
Note: Start and end tags that are missing a critical character in their formation, such as a closing Angle bracket or a mismatched attribute value quotation mark are not complete.
请确保字符串文本以引号(“)结束。”
Make sure the string literal ends with a quotation mark (")."
生成的所有元素都使用显式的开始标记和结束标记(或自结束标记),且属性值括在双引号中。
All generated elements use explicit opening and closing tags (or self-closing tags), and attribute values are included in double quotation marks.
报告第 11行有错误是因为第9行用双引号标出一个字符串的开头,但是这个字符串直到第 11行还没有结束。
Line 11 is reporting an error because line 9 started to encapsulate a string withdouble quotation marks, but the string was not fully encapsulated until line 11.
报告第 11行有错误是因为第9行用双引号标出一个字符串的开头,但是这个字符串直到第 11行还没有结束。
Line 11 is reporting an error because line 9 started to encapsulate a string withdouble quotation marks, but the string was not fully encapsulated until line 11.
应用推荐