字符串方法:
- len(s)
- int(s)
- ord(s)与chr(ASCII)
- find(s[,start,end])
- rfind
- strip(s)去除首尾空格
- lstrip
- rstrip
- splita(s)
index(sub)
rindex(sub)
s.encode([encoding])
s.decode([encoding])
时间: 2024-10-01 02:37:44
字符串方法:
index(sub)
rindex(sub)
s.encode([encoding])
s.decode([encoding])