清单1显示了一些例子,说明了提示字符串(来自PS 1环境变量)与本文中的其他例子不同。
Listing 1 shows some examples where the prompt strings (from the PS1 environment variable) are different from the other examples in this article.
不幸的是,提示仅对对象有效,所以不能在参数列表中要求字符串或整数。
Unfortunately, hinting works only for objects, so you cannot require a string or an integer in your argument lists.
实际上,该解决方案提示接收系统哪些值是标准的(包括包装和拼写)。但实际上字符串字段可以存放任何值。
This solution, in effect, gives the receiving system a hint as to which values are standard (including casing and spelling) but in fact allows any value in the string field.
这时没有发出警告,但提示符更改为包括一个(CONNECTION1)字符串。
This time no warning is issued, but the prompt changes to include a (CONNECTION1) string.
系统确认正确的登陆,显示主页,并且提示输入搜索字符串
System confirms correct login, presents main page, and prompts for a search string.
提示:在翻译之前,要记得在词汇表数据库中运行检索功能,以减少未翻译的字符串的数量。
Tip: Before translation, remember to run the retrieve function in the glossary database to reduce the number of untranslated strings.
提示:可以通过启用xfdl格式选项中的必填选项或在XForms绑定中将必要选项设置为true来使字符串字段成为必填字段。
TIP: You can make a string field mandatory by either enabling the mandatory option in the XFDL format option or setting required to true in an XForms bind.
设置usage字符串来显示一个提示,以免提交无效的参数。
Set the usage string to show a hint for when invalid parameters are submitted.
复选框决定每次运行feed时是否向用户提示hellotext字符串。
The check box is used to indicate whether to prompt the user for the hellotext string each time the feed is run.
第一个部分获得提要并为每个新闻条目标题输出提示块;这些输出依次追加到一个字符串中。
The first gets the feed and outputs the prompt blocks for each news item title; this is sequentially appended to a string.
下面的这个例子使用raw _ input从命令提示符获取一个字符串,然后将值赋给quest。
The following example USES raw_input to grab a string from the command prompt, then assigns the value to quest.
当Console视图提示输入要编码的字符串时,输入用户名。
When the Console view prompts for a string to encode, enter a username.
D {format}:括弧里的字符串被传递给strftime(3)函数,返回值填充到提示符中。如果不传参数,会按照系统默认的当地时间格式来显示。
D {format} : the format is passed to strftime (3) and the result is inserted into the prompt string; an empty format results in a locale-specific time representation.
在解释命令行时,会展开变量blue和none,提示符被设置为展开变量而生成的字符串。
Here, the variables blue and none are expanded when the command line is interpreted, and the prompt is set to the string that results from the expansion.
要更改定制的提示符,可以退出CLP交互模式(发出QUIT命令),然后再次发出db2set命令,并指定不同的字符串。
The customized prompt can be altered by exiting the CLP interactive mode (issue the QUIT command), and then issuing the db2set command again, specifying a different string.
提示:这个函数是用来将一个字符串存储在一个数据库中或数据库查询语句中的。
Tip: This function can be used to prepare a string for storage in a database and database queries.
提示:这个函数可以用来清除从数据库中获取的字符串。
Tip: This function can be used to clean up a string retrieved from a database.
如果应用程序提示用户输入信息并将用户的输入串联为表示sql语句的字符串,则会出现这种情况。
This can occur if an application prompts users for information and then concatenates the user's input into a string representing the SQL statement.
如果提供了第二个字符串参数,则提示消息框的默认响应是在文本字段中显示第二个字符串。
If you provide a second string argument, the prompt message box displays the second string in the text field as the default response.
通过用提示字符替换可编辑输入字符,从带格式字符串中清除所有可编辑输入字符,然后输出描述性信息。
Clears all the editable input characters from the formatted string, replacing them with prompt characters, and then outputs descriptive information.
“#|”,前缀表示什么本条目前面的未翻译的字符串,并给出了翻译的提示,为什么条目被标记为模糊。
The "#|" prefix indicates what was the previous untranslated string of this entry and gives the translator a hint why the entry was marked as fuzzy.
这一行显示输入对话框,第一个字符串是对话框标题,第二个是对话框中的提示信息。
This line displays the input dialog. The first string is a dialog title, the second one is a message within the dialog.
返回带格式字符串的子字符串,也可以选择包含提示字符和原义字符。
Returns a substring of the formatted string, optionally including prompt and literal characters.
返回带格式字符串的子字符串,也可以选择包含提示字符和原义字符。
Returns a substring of the formatted string, optionally including prompt and literal characters.
应用推荐