python之路字符串操作 号操作号操作 str* int 将字符串重复N遍通过下标访问字符串的某个字符 “hello”[1] ->e 下标为-1访问最后一个 -3从后往前推3个>>> "hello world"[6]'w'>>> "hello world"[-5]'w'>>> "hello world"[0:4]'hell'>>> "hello world&quo python基础 2023-11-10 37 点赞 0 评论 56 浏览