Python基础:字符串(2)经常使用方法函数汇总

字符串(2)经常使用方法函数汇总:git 1.切片 形式:s[ a:b :c ],[起始偏移量 start:终止偏移量 end:步长 step]web [:] 提取整个字符串, [start:]从 start 索引开始到结尾 [:end]从头开始知道 end-1 [start:end]从 start 到 end-1 [start:end:step]从 start 提取到end-1,步长是 step
相关文章
相关标签/搜索