python 字符串常见操作
摘要:
1 str操作 1. str切片 s1 = 'python开发' s2 =s1[-1] =发 s3 =s1[0:5] # pytho s4 =s1[:6] # python s5 = s1[6:-1] # 开 s5 = s1[6:] # 开发 s7 = s1[:5:2] # 如果我想每隔一位取p,t 阅读全文
posted @ 2020-07-05 21:10
sunnywillow
阅读(77)
评论(0)
推荐(0)
浙公网安备 33010602011771号