首页 > 技术文章 > python:find()函数,字符串查询
dxxblog 2018-05-08 14:38 原文
#find函数 # b中有a的元素则打印a对应的元素坐标(索引),否则打印-1 a = "abcd" b = "d" print(a.find(b))