此外,所有的标记属性都必须有一个起始引号和结束引号,并且这些标记都必须被括住,如在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.
Strings are captured in Python with an open quote and some sequence of characters followed by a closed quote.
字符串在Python中,是以一个开引号开始,然后后面是一系列的字符,以一个尾引号结束。
应用推荐