Conversely, use the encode method of a string object if you want a bytes literal from that string.
相反,如果想要从该字符串得到bytesliteral表示,可以使用字符串对象的encode方法。
But you can also explicitly create a string object by using the STR class constructor, as shown in Listing 6.
但是您也可以使用str类构造函数显式地创建字符串对象,如清单6所示。
Strings are immutable, which means that no matter what operation you do on a string, you will always produce a new string object, rather than mutating the existing string.
字符串是不可变的,也就是说不管你对字符串做何种操作,你总是创建了一个新的字符串对象,而不是改变了原有的字符串。
Normally, the data is read from the parser buffer into the string object, which is then pushed to the client buffer.
数据通常从分析器缓冲区读入字符串对象,然后,字符串对象被推送到客户端缓冲区。
This property's value is then persisted to a string object after the save state stage of the server control's life cycle.
然后该属性的值在服务器控件生命周期的保存状态阶段后保存到一个字符串对象。
Therefore, any operation on a string, including string concatenation, produces a new string object, rather than modifying an existing one.
所以,在字符串上的任何操作,包括字符串连接,都产生一个新的字符串对象,而不是更改一个存在的字符串。
The results of that query are returned as a String object.
该查询的结果将作为一个String对象返回。
Format the calculation result back to a String object by using NumberConverter again.
通过再次使用NumberConverter,来将计算结果格式化回至String对象。
For now, please note that it returns a String object, which is simply the HTML fragment that represents the transformed XML.
现在,要注意到它返回一个String对象,即表示转换后的XML的HTML片段。
For instance, I observed certain SOAP bindings create multiple copies of the SOAP request — with each request instantiated as a String object — for no apparent reason.
比如,我发现某些SOAP绑定创建SOAP请求的多个副本,每个请求都实例化为string对象——这样做并没有明显的理由。
For instance, I observed certain SOAP bindings create multiple copies of the SOAP request — with each request instantiated as a String object — for no apparent reason.
比如,我发现某些SOAP绑定创建SOAP请求的多个副本,每个请求都实例化为string对象——这样做并没有明显的理由。
应用推荐