关键字应该是每一个非注释行的第一个字段;通常与char*相关联的字符串引号是可选内容。
The keywords should be the first field of each non-comment line; the string quotes that you typically associate with a char* are optional here.
如果字符串引号括在双两对,第一对被认为是一个空字符串括起来,而其余的字符串将被丢弃。
If the string is enclosed in two pairs of double quotes, the first pair is considered to enclose a null string, and the rest of the string is discarded.
在该字符串中,您可以使用任意多的单引号和双引号(参见清单4)。
Within in the string, you can use as many single and double quotation marks as you like (see Listing 4).
该方法具有一个使用引号括起来的字符串参数和一个代码块。
The method takes a string parameter, enclosed in quotes, and a code block.
第一,在创建字符串时,您可以混合使用单引号和双引号,只要字符串在开始位置和结束位置使用同一类型的引号。
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.
有一些额外的规则可以让你书写包含特殊字符(例如双引号)的字符串。
There are several additional rules for writing string constants that allow you to include special characters (such as quotation marks) within the string.
如果仔细看看上面这个语句,会看出所有值都是直接字符串(由单引号包围)或变量名,它们都由逗号分隔。
If you look closely at the statement above, you will see that all of the individual values are either literal strings (surrounded by single quotes) or variable names, all separated by commas.
路径必须是带引号的字符串。
这里,第一个字符串使用一对单引号定义,第二个字符串使用一对双引号定义。
Here, the first string is defined with a pair of single quotes. The second one USES a pair of double quotes.
根据句法,在uri字符串前后使用引号(单引号或双引号),并用冒号将前缀分隔开;对其它字符没有任何规定。
Syntactically, you use quotes (single or double) around the URI string, and a colon to set off the prefix; other characters present no interference.
另外一点值得注意的是字符串是通过单引号或双引号被编码的。
It's worth noting that strings are encoded using single or double quotation marks.
双引号本身并不是字符串的一部分,仅仅表示开始和结尾。
The quotation marks are not part of the string but serve only to mark its beginning and end.
双引号中的值始终是字符串,而不带引号的数字值被认为是数字。
A value in double quotes is always a string, but a numeric value without quotes is interpreted as a number.
比如,你有没有发现在数组索引里没有用引号将字符串括起来?
For instance, did you notice that there were no single quotes around the array indexes ($x[sales] and $x[profit])?
但所有参数值都使用单引号括入,这使单引号中的内容成为了字符串。
However, all parameter values are enclosed in single quotes, which makes the contents within the quotes a literal string.
您还可以简单地将整个字符串放到单引号(')中,但是需要在变量中真正的单引号字符前面加上一个反斜线(\ ')。
You can also simply enclose the entire variable value in single quotation marks (') as long as you precede any actual single quotation marks in the variable with a backslash (\ ').
如果在基于字符串的查询谓词周围使用双引号,而不是单引号,就会收到语法错误。
If you use double quotes around your string-based query predicate, instead of pairs of single quotes, you'll get a syntax error.
使用单引号、双引号和三引号语法创建的字符串仍然是字符串对象。
The strings I've been creating using the single, double, or triple quotation mark syntax are still string objects.
清单11显示了一个转义字符串序列,它使用了一个引号作为省略号。
Listing 11 shows an example of the escape sequences for a string that USES a single quote as an apostrophe.
它很聪明,不会替换在引号括起的字符串中找到的逗号。
Wisely, it doesn't replace a comma found within a quoted string.
三引号字符串可以扩展到多个行。
从清单1中可以看出,除了字符串用适当的引号括起来之外,另外还有两个重要方面。
Notice a couple of other important points from Listing 1, in addition to the proper quoting of strings.
字符串字段需要双引号。
如果你只想输出一个基本的字符串,就用单引号吧,这样会节省一些资源。
If you just want to output a basic string, use single quotes! There is a marginal performance benefit, since the string does not get parsed.
如果字符串是以单引号开始,那么必须以单引号结束,反之亦然。
If you start a string with a single quotation mark, you must end with a single quotation mark, and vice versa.
在处理字符串数据时,可以使用双引号或单引号分隔。
When working with string data, you can use either double quotation marks or single quotation marks to delimit them.
字符串用单引号限定,从而节省了PHP从字符串中搜索可替换的变量的时间。
Strings are delimited by single quotes instead of double quotes to avoid the performance hit of PHP searching for variables to interpolate within the strings.
处理引号中用于显示的字符串的语法也改变了。
而单引号引用的字符串则是简单直接的文字。
您可以使用任意一类引号来表示Python中的字符串,只要引号一致就行。
You can use either type of quotation mark to indicate a string in Python, as long as you're consistent.
应用推荐