字符串是字面值 literal 不可变(immutable) python中没有char这个类型

py2中有三种类型string 三个类型type / 三个类 class

2.2之后 type 和class是一回事了

str(ASCII) unicode都是basestring的子类

3中没有unicode和ascii的区别

https://docs.python.org/3.0/whatsnew/3.0.html

st = ( ... "eeeee" ... "fdsafdsafas" ... ) st 'eeeeefdsafdsafas'

results matching ""

    No results matching ""