摘要: 对字符串的操作(一些重要的方法) #_author:Star#date:2019/10/27#字符串#1.重复输出字符串print('hello'*2)#hellohello#2.通过索引获取字符串中的字符,这里和列表的切片操作是相同的str='hi_star'print(str[1:])#i_st 阅读全文
posted @ 2019-10-27 12:47 Stary_tx 阅读(568) 评论(0) 推荐(0) 编辑