摘要:
Python编程整理:字符串中常用的操作 1. 切片 msg[(起始位置):(结束位置):(步长)] 顾头不顾尾 步长默认为1,并且可以是负数,表示反向取 例子: msg = "hello world" print(msg[0:2]) # he msg = "hello world" print(m 阅读全文
posted @ 2020-07-27 17:51
cutomorrow
阅读(377)
评论(0)
推荐(0)
浙公网安备 33010602011771号