首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
python_25_string
】的更多相关文章
python_25_string
name="my name is 齐志光qizhiguang" print(name.capitalize())#首字母变大写 print(name.count('i'))#统计字母‘i’出现的次数 print(name.center(50,'-'))#一共打印50个字符,name放中间,不够的用‘-’补上 print(name.encode(encoding="utf-8"))#字符串编码成二进制 print(name.encode()) print(name.e…