字符编码:
ascii:包括字母,数字,特殊字符;1个字符表示,8位
Unicode:16位 两个字节 升级32位 四个字节
utf-8:最少一个字节 8位表示。 英文字母 8位 1个字节
欧洲16位,2个字节
中文24位,3个字节
gbk:中文2个字节,英文字母1个字节,
python的数据类型:
int:bit_lenth
bool:True False
str: str --->bool :bool(str): "--->False
int,bool,str之间的转换
str:
s = 'alsdasd'
切片 (回头做博客)
字符串的所有用法
captlze
upper()
lower()
find
index
swpcase
replace(old,new,count)
isdgit()
title
center()
strip() lstrip rstrip
format
len()
count()
for i in 可迭代对象
pass