摘要: # 切片和索引# 1.索引.索引就是下标,Python中下表从0开始# s1 = "python最牛B"# p y t h o n 最 牛 B# 索引 0 1 2 3 4 5 6 7 8# print(s1[0]) #结果:p# print(s1[1])# print(s1[2])# print(s 阅读全文
posted @ 2018-10-19 21:34 全干 阅读(1395) 评论(0) 推荐(0) 编辑