摘要: str = 'abcde...wxyz' [num]提取指定字符 str[0] == 'a' str[1] == 'b' str[-1] == 'z' [start:end:step]分片/切片,一定要带上:冒号.end是偏移量,偏移位数,偏移到的key=偏移位数-1 str[:] == str[0 阅读全文
posted @ 2017-07-21 16:42 emmmmmm1 阅读(235) 评论(0) 推荐(0) 编辑