Single quoted strings are simple, straight literals.
而单引号引用的字符串则是简单直接的文字。
So, if I want to encode O'Reilly in a single quoted string, I must escape it using backslash, 'O\'Reilly'.
所以,如果我想用单引号编码O'Reilly,我就必须使用反斜杠对它进行转义:'O\'Reilly'。
This means, inside single quoted strings, the single quote character has to be escaped, and inside double quoted strings, the double quote character has to be escaped.
这意味着,在单引号字符串,单引号字符必须逃,在双引号字符串,双引号字符必须逃跑。
The output of each dialog variant differs but is either a single value or a list of quoted values separated by white space.
每个dialog变体的输出不同,或是一个单一值,或是一列由空格分隔的带引号值。
Both single-quoted or triple-quoted strings may be preceded by the letter "r" to indicate that regular expression special characters should not be interpreted by Python. For example.
使用单引号或三重引号的字符串前面可以加一个字母“r ”以表示Python不应该解释规则表达式特殊字符。
In contrast, single-quoted strings treat everything inside their delimiters as literal characters-except two consecutive single-quotes, which are treated as a literal single-quote.
相比之下,使用单引号分隔的字符串将包括在其中的所有内容视为文字字符—两个连续的单引号是一个例外,它们被单纯地当作单引号。
Did you also notice the use of double-quoted strings instead of single-quoted strings on the echo line?
另外,你注意到在echo一行它使用了双引号而不是单引号吗?
Jackie Minott, the largest single grower of non-Blue Mountain coffee has been quoted as saying that if another hurricane hits the island, he will have to reassess his commitment to the business.
最大的非蓝山咖啡种植商说如果有另一个飓风来临,他将不得不重新评估他对生意的预期。
The currency used as the basis for an exchange rate, eg. A foreign currency rate of exchange is quoted per single unit of the base currency.
汇率报价中作为基础的货币,即报价表达形式为每一个单位的货币可兑换多少的另一种货币。
The Rayleigh scattering theory is quoted to analyze how single EPS sphere absorbs electromagnetic wave.
引用瑞利散射原理,分析了单体EPS球对电磁波的吸收。
Two sequential apostrophes in a quoted string denote a single character, namely an apostrophe.
串中连续的两个单引号表示一个字符,即单引号。
Two sequential apostrophes in a quoted string denote a single character, namely an apostrophe.
串中连续的两个单引号表示一个字符,即单引号。
应用推荐