Python的超级基础知识点2

原始字符串:(r’’) 合并字符串:+ eg:‘1’+‘2’=‘12’ 截取字符串: ‘hello world’[0]=>‘h’ [0:5]=》‘hello’ [0:-1]=》‘hello worl’ [6:]=》‘world’ [:-4]=》‘hello w’ [-4:]=》‘orld’ 二维数组列表 [‘1’,‘2’,‘3’,‘4’,‘5’,‘6’] [0:2]=》【1,2】 [-1:]=》【
相关文章
相关标签/搜索