查询词典 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(从字面意思可以猜测函数将返回一个字符串)作为格式化的基础函数。
- 相关中文对照歌词
- 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
- 推荐网络例句
-
The absorption and distribution of chromium were studied in ryeusing nutrient culture technique and pot experiment.
采用不同浓度K2CrO4(0,0.4,0.8和1.2 mmol/L)的Hoagland营养液处理黑麦幼苗,测定铬在黑麦体内的亚细胞分布、铬化学形态及不同部位的积累。
-
By analyzing theory foundation of mathematical morphology in the digital image processing, researching morphology arithmetic of the binary Image, discussing two basic forms for the least structure element: dilation and erosion.
通过分析数学形态学在图像中的理论基础,研究二值图像的形态分析算法,探讨最小结构元素的两种基本形态:膨胀和腐蚀;分析了数学形态学复杂算法的基本原理,把数学形态学的部分并行处理理念引入到家实际应用中。
-
Have a good policy environment, real estate, secondary and tertiary markets can develop more rapidly and improved.
有一个良好的政策环境,房地产,二级和三级市场的发展更加迅速改善。