摘要:
#字符串类型的生成 name = '小明' nums = str(9) print(name,'******',nums) #字符串的基本操作 words = 'diFfrEnCe' #根据索引获取值 print(words[1]) #切片 print(words[1:4]) #带步进值的切片 print(words[0:4:2]) #遍历字符串 # for item in words... 阅读全文
posted @ 2018-10-16 15:30
哈哈毛毛怪
阅读(220)
评论(0)
推荐(0)
浙公网安备 33010602011771号