摘要: Python中的字符串操作(Python3.6.1版本) (1)切片操作: str1="hello world!" str1[1:3] <=> 'el'(左闭右开:即是从1到2) str[:3] <=> 'hel' str[2:] <=> 'llo world!' (2)和Java中的字符串一样,不 阅读全文
posted @ 2017-05-12 16:54 fcyh 阅读(8158) 评论(0) 推荐(1)