摘要: #1.切片操作 左闭右开 s='Hello word' print(s[0:5]) #2.更新字符串 s1='hello word' s2='python' print(s1[0:6]+s2) #3.代表在里面 not in不在里面 print(s2 in s1[0:6]+s2) #4.回车 \r: 阅读全文
posted @ 2020-01-08 11:00 我是王哈哈w 阅读(161) 评论(0) 推荐(0) 编辑