003-字符串

一、字符串赋值 str_01 = "hello worD!!好" str_02 = "**@@@我来自中国,中国是个拥有5000年文明的国家@@*****" 二、字段索引取值 左边 0开始;右边开始 -1开始 print(str_01[0]) print(str_01[4]) print(str_0

你可能感兴趣的:(003-字符串)