2019年5月19日
摘要: 如有字符串mystr = 'hello world itcast and itcastcpp',以下是常见的操作 1. find 检测 str 是否包含在 mystr中,如果是返回开始的索引值,否则返回-1 2. index 跟find()方法一样,只不过如果str不在 mystr中会报一个异常. 阅读全文
posted @ 2019-05-19 19:31 浮生若梦-平 阅读(89) 评论(0) 推荐(0) 编辑