python字符串

1、字符串定義python   1.可用" "、''、""" """定義git   2.轉譯特殊字符 "\"函數 2、字符串操做spa   s = 'welcomewestos'   ##從0開始,到length-1結束3d  1.索引blog   print(s[4])    ##打印4索引,即第5個字符索引  2.切片ip   print(s[1:3])   ##從0索引開始,到3索引結束字符
相關文章
相關標籤/搜索