摘要: 字符串是一个类,"hello world"是它的对象 常用方法: 移除空白 分割 长度 索引 切片 class str(basestring): def capitalize(self): """ 首字母变大写 """ (返回副本) def center(self, width, fillchar= 阅读全文
posted @ 2017-06-07 02:46 hijacklinux 阅读(207) 评论(0) 推荐(0) 编辑