摘要: 函数list 有些时候修改字符串不能像列表那样,可以使用list来解决 list函数实际上是一个类,而不是函数。 somelist = list('hello') 字符串str1 = hello world, print(str1) ['h', 'e', 'l', 'l', 'o', ' ', 'w 阅读全文
posted @ 2018-10-15 12:24 nicolaslzh 阅读(367) 评论(0) 推荐(0) 编辑