摘要: Python中最常用的字符串的方法:str1='hello world hello'获取字符串的方法print(dir(str1))获取这个字符串的索引 没有找到这个对象 返回的是程序错误print(str1.index('hello'))获取字符串在这个对象里面的个数print(str1.coun 阅读全文
posted @ 2022-03-25 15:35 净植 阅读(64) 评论(0) 推荐(0)