python - Trying to assign an str.find return to a variable -


i want assign str.find() return variable besides str.find, i'm not sure how go doing that.

you use = assign it.

mystr = '123.456' dotpos =  mystr.find('.') 

now variable dotpos contain 3.


Comments

Popular posts from this blog

Google sheets equipment borrowing system -

javascript - Filter Radio Elements -

what is select distribution ratio under insert distributions in cassandra stress tool? -