英语人>网络例句>字符串 相关的搜索结果
网络例句

字符串

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

The most common string comparison operator is eq, which tests for string equality - that is, whether two strings have the same value.

最常用的字符串比较运算符是eq,它比较两个字符串是否相等,也就是比较两个字符串是否有相同的值。

The quotes are not part of the string, but serve only to delimit it.

都是字符串。双引导不是字符串的一部分,它只用于限定字符串

So for immutable objects like strings, we make the observation that only valid expressions on the left-hand side of an assignment (to the left of the equals sign ) must be the variable representation of an entire object such as a string, not single characters or substrings.

对像字符串这样的不可变对象,我们探究了它在赋值操作中对左值的限制,左值必须是一个完整的对象,比如说一个字符串对象,不能是字符串的一部分。

Thus to remove the virus string, I put the Search string to the virus script and the replacement string to NULL.

因此,要清除病毒字符串,我把搜索字符串病毒脚本和替换字符串为NULL。

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.

如果字符串引号括在双两对,第一对被认为是一个空字符串括起来,而其余的字符串将被丢弃。

Practically all Python objects have a string presentation either evaluatable from repr( or '', or printable from str. The print statement automatically invokes the str function for an object. This gets even better. When you are defining your own objects, there are hooks for you to create string representations of your object such that repr and str (and '' and print) return an appropriate string as output. And if worse comes to worst and neither repr or str is able to display an object, the Pythonic default is at least to give you something of the format

事实上,所有的Python对象都有一个字符串表示形式(通过repr函数,''或者str函数来展现)。print语句自动为每个对象调用该对象的str方法,这种机制的一个额外的好处就是在你定义你自己的对象时,你可以利用这种机制定义repr(,str或者''或者print来为你的对象创建一种字符串表达形式,它可以在被调用时返回适当的字符串描述信息,这样即使在坏的不能再坏的情况下,repr或者str起码可以给你返回一个对象的信息,Pythonic方式的默认做法是起码给你返回想如下格式的信息

The ''' right quotient ''' of a letter '' a '' from a string '' s '' is the truncation of the letter '' a '' in the string '' s '', from the right hand side.

字符串 '' s ''与字母''a''的'''右商'''是在字符串'' s ''中切断右手端字母'' a ''得到的字符串

Other languages such as C use single quotes for characters and double quotes for strings.

字符串是不可边类型,就是说改变一个字符串的元素需要新建一个新的字符串

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 是一个用来帮助创建转换表的例程。

The value of a raw string literal is the string composed of the uninterpreted characters between the quotes; in particular, backslashes have no special meaning and the string may span multiple lines.

原始字符串字面值表示的值就是由反引号之间的字符组成的字符串。特别是,原始字符串中反斜杠没有特殊含义,可以跨跃多行。

第2/92页 首页 < 1 2 3 4 5 6 7 8 9 ... > 尾页
推荐网络例句

I didn't watch TV last night, because it .

昨晚我没有看电视,因为电视机坏了。

Since this year, in a lot of villages of Beijing, TV of elevator liquid crystal was removed.

今年以来,在北京的很多小区里,电梯液晶电视被撤了下来。

I'm running my simile to an extreme.

我比喻得过头了。