Python3字符串的下标

假设字符串:str1 = 'A,E,w,e, r, t, y, u, i, o, p'

此时e的索引是6,索引的计算会包括逗号和空格

 

posted @ 2021-07-13 19:57  悬崖边的树  阅读(262)  评论(0)    收藏  举报