格式化字符串文字的你的想法是正确的。
我会想象,当你看到这一连串文字时,你会作何反应。
And what I'm imagining is how you're going to respond to these words in this order.
例如,可以是程序中的一串文字或从本地文件读取。
For instance, it can be a string literal in the program or read from a local file.
这一大串文字不会告诉你详细的内容,但是你应该对其有所了解。
That's a long string of words that doesn't communicate a whole lot, but it's something you should be aware of.
我们再也不需要复制粘贴一大串文字了,因为无论如何,有哪个家伙能把那玩意儿全背出来?
No longer do we have to copy and paste a long string of text, because who can remember that thing, anyway?
格式化字符串文字的你的想法是正确的。然而这格式必须通过事先准备好的声明中。
Your idea of formatting a string literal is right. YET this formatting have to be done via prepared statement.
这太棒了。我们再也不需要复制粘贴一大串文字了,因为无论如何,有哪个家伙能把那玩意儿全背出来?
This is awesome. No longer do we have to copy and paste a long string of text, because who can remember that thing, anyway?
在重构后,所有对这个类中的数字或字符串文字的使用都将指向该字段,而不是指向数字或字符串文字本身。
After the refactoring, all USES of that number or string literal in the class refer to that field, instead of the number or string literal itself.
仅当作为头名称的一部分,或在字符文字量或字符串文字量的引号字符之间时,空白才可以出现在预处理标记内部。
White space can appear within a preprocessing token only as a part of a header name or between the quotation characters in a character literal or string literal.
这样,在一个位置(字段的值)就可以实现对所有数字或字符串文字的修改,再也无需在整篇代码中执行查询和替代了。
This way, you can modify the number or string literal in just one place (the value of the field), instead of doing a search and replace throughout your code.
要使用这个重构,请选择编辑器中的数字或字符串文字,然后按下Ctrl +1并选择Extract to Constant。
To use, select the number or string literal in the editor, press Ctrl + 1 and select Extract to Constant.
在泰森斯角中心(TysonsCorner Center)的苹果店外,一张卡片潦草地写下了这串文字:“你改变了我的生活。”
Outside Apple's store in Tysons Corner Center, a card had this message scribbled inside: "You changed my life."
他们提交给大学生一个表格,列有一连串的媒介,如印刷、电视、电脑各种媒体的视频,音乐,电脑游戏、电话语音或文字,等等。
They gave the students a form listing a variety of media such as print, television, computer-based video, music, computer games, telephone voice or text, and so forth.
在波斯尼亚首都萨拉热窝的市中心,一串星光熠熠的阿拉伯文字点缀在一座新大楼的顶端。
In the centre of Sarajevo, Bosnia's capital, a gleaming piece of Arabic script adorns the top of a new building.
您选择的名称是自由格式的上下文字符串,将不会直接影响配置,且只作为管理控制台中的标识符。
The name you choose has no direct effect on the configuration as it is a free-form text string that is used only as a label in the administrative console.
把包含原子值(数字、布尔值或字符串)的变量和另一个此类变量或者文字原子值比较,希望一种类型自动转换成另一种类型。
Comparing a variable having an atomic value (number, Boolean, or string) to another such variable or a literal atomic value, and expecting the type of one to be cast automatically to the other type.
可以为RDF文字给定数据类型,如“整数”、“字符串”、“日期”或甚至是“莫尔斯代码”。
RDF literals can be given data types such as "integer", "string", "date", or even "morse code".
实现这种自动化主要依靠正则表达式,它是用来查找、匹配和分解字符串的一组真正的象形文字。
The power behind much of this automation is the regular expression, a veritable set of hieroglyphics to find, match, and decompose strings.
翻译器需要打开词汇表数据库,复制英文字符串,翻译字符串,然后将用新语言表达的字符串存储到词汇表数据库。
Translators need to open the glossary database, copy an English string, translate it, and store the strings in the new language to the glossary database.
至此,已经有了一个标记数据库和一个包含英文字符串和翻译后的字符串的词汇表。
Now, you have a tag database and a glossary that contains the English strings and the translated strings.
上下文字符串看起来类似于清单3中给出的示例。
The context string looks like the example shown in Listing 3.
花括号指示DB 2计算和处理其中的表达式,而不是将其当作文字字符串。
Curly brackets instruct DB2 to evaluate and process the enclosed expression rather than treat it as a literal string.
这里需要一个词汇表数据库来存储要翻译的英文字符串。
A glossary database is required to store the English strings for translation.
现在,可以重新设置活动编码页936并在字符串末尾加4个中文字符。
Now, you can reset the active codepage 936 and add 4 more Chinese characters at the end of the string.
文字字符串是标准的文字字符串。
那会允许我们不光让按钮显示文字字符串,而且可以显示任何自定义的内容(就象我们在本教程早先时候做的那样)。
That will enable us to have the button display not just text strings, but any custom content as well (just like we did earlier in this tutorial).
词汇表数据库中有很多英文字符串需要被翻译,如图6所示。
There are a lot of English strings in the glossary database to be translated as shown in figure 6.
而单引号引用的字符串则是简单直接的文字。
正如您可以从输出(清单2)中看到的,perror函数显示了传递给它的字符串,后跟冒号、空格,接着是当前errno值的文字表示形式。
As you can see from the output (Listing 2), the perror function displays the string you pass to it, followed by a colon, a space, and then the textual representation of the current errno value.
format-number() 中的格式(picture)字符串具有前后是“被动”字符的数字标识符,通常是结果中的文字。
The format (picture) string in format-number() has digit markers with "passive" characters before or after, which are intended to be literal characters in the result
应用推荐