英语人>网络例句>string 相关的网络例句
string相关的网络例句

查询词典 string

与 string 相关的网络例句 [注:此内容来源于网络,仅供参考]

One way we can initialize a string is as a copy of a character string literal

其中一种初始化 string 对象的方式是作为字符串字面值的副本

Write a small program that requests two strings from the user and reports which string is lexicographically less than the other (that is, comes before the other alphabetically).

编写一个小程序,由用户输入两个 string 对象,然后报告哪个 string 对象按字母排列次序而言比较小(也就是说,哪个的字典序靠前)。

Obviously the attribute is declared as a string (hey, its stored in a text file after all), so if the property it maps to isn't of type string, it must figure out how to convert the given string into the correct type, before calling the property setter.

显然,属性被声明为string(hey,它毕竟存在一个文本文件里),所以它映射的类型不是string,它必须在调用property setter之前,找方法怎么把给出的string转化为正确的类型。

The key to understanding this recipe lies in the definitions of the translate and maketrans functions in the string module. translate takes a string and replaces each character in it with the corresponding character in the translation table passed in as the second argument, deleting the characters specified in the third argument. maketrans is a utility routine that helps create the translation tables.

理解这一配方的关键,在于string模块中 translate 和 maketrans 函数的定义。translate接收一个字符串,并根据第二个参数中传入的转换表,将字符串中的每一个字符替换为相对应的字符,同时删除掉第三个参数中指定的字符(译者注:当translate作为字符串对象的方法调用时,转换表为第一个参数,第二个参数中指定要删除的字符)。maketrans 是一个用来帮助创建转换表的例程。

Note that even though a std::string is used, one should not view the string classically.

请注意,即使一个std::string的使用,则不应把该字符串古典。

Write a program to read strings from the standard input, concatenating what is read into one large string.

编一个程序,从标准输入读取多个 string对象,把它们连接起来存放到一个更大的 string对象中。

Sometimes, as in this recipe, you may choose some simple task, such as concatenating to the empty string, as a stand-in for a much richer set of properties (such as all the various operations and methods available on string objects).

有时候,象在这个配方里一样,你可以选择一些简单的任务,例如连接到空的string,作为一个更丰富的属性集合的替代(诸如所有的变量操作和方法在string对象上都可利用

Of being able to convert a number given in string representation to an actual float value, obsoleting the use of the atof function of the string module.

从 Python 1.5 开始, float 增加了把字符串表示的数值转换为浮点数的功能,没必要使用 string 模块中的 atof 函数。

We introduced the string type in Section 3.2 (p. 80). Table 9.12 (p. 337) recaps the string operations covered in that section.

第 3.2 节介绍了 string 类型,表 9.12 扼要重述了在该节中介绍的 string 操作。

Observe that the String method calls Sprint (the obvious Go variant that returns a string) to do its formatting; special formatters can use the fmt library recursively.

前面的例子中,String方法用到了Sprint(从字面意思可以猜测函数将返回一个字符串)作为格式化的基础函数。

第1/100页 1 2 3 4 5 6 7 8 9 ... > 尾页
相关中文对照歌词
Pearls On A String
I've Got The World On A String
String Bean Jean
I've Got The World On A String
Tin Can On A String
String-A-Long Song
Six String Soldier
I've Got The World On A String
Six String Music
Hanging On A String
推荐网络例句

This is not an ordinary box, which is used as a background picture of the dialog box, very pretty.

详细说明:这可不是一个一般的对话框,它是用图片作为背景的对话框,非常好看。

Conceal me what I am,and be my aid for such disguise as haply shall become the form of my intent.

遮掩我的身份,帮助我,我的面具将成为我的目的。

Now, there is no effective methods for this disease, chemotheraphty and hemapoietic stem cell transplantion are often used, but complete remisson rate is not very high.

目前还没有良好的治疗方法,常采用化疗和造血干细胞移植的治疗手段,但完全缓解率并不高,而且在治疗过程中容易诱发肿瘤溶解综合征。