摘要: 字符串 创建: s = 'Hello,Eva! How are you?' #索引 s = 'Hello' >>>[1] 'e' >>>s[-1] 'o' >>>s.index('e') 1 #查找 >>>s.find('e') 1 >>>s.find('i') -1 移除空白 s=' hello, 阅读全文
posted @ 2018-04-11 00:49 m-cai 阅读(133) 评论(0) 推荐(0) 编辑