In fact, a string object is an instance of the STR class.
事实上,字符串对象是str类的一个实例。
In Listing 5, the string in STR is modified by the upcase!
在清单5中,str中的字符串由upcase !
In Python 3.0 all strings are unicode (STR is now unicode string) and there is a new type called bytes to hold byte sequences.
在Python 3.0之中,所有的字符串都是unicode的(str就是unicode字符串),并引入了一个叫做bytes的新类型来处理字节序列。
So STR, which I just typed up there, takes in parens, some input, and it converts it into a string, so that now I can use that John where I was expecting a string. John.
因此STR,也就是,我刚刚输入的,然后把这个输入变更为一个字符串,因此现在我就能,在需要用字符串的地方使用这个对象了。
应用推荐