search

Home  >  Q&A  >  body text

a.indexof(p,2) error

Shouldn’t the return value be 9?

手机用户1609988806手机用户16099888061061 days ago1167

reply all(1)I'll reply

  • autoload

    autoload2022-02-14 10:07:13

    image.png

    Start from 0, the first time p is 6, the second time is 8; a.indexof('p',2), means starting from index 2, ignoring the ' before 2 p'

    reply
    0
  • Cancelreply