所以如果我的字符串是“这家伙是个很酷的家伙”。
我想找出“伙计”的第一个索引:
mystring.findfirstindex('dude') # should return 4
用于此的python命令是什么?
谢谢。
https://stackoverflow.com/questions/3221891
相似问题