str.find(sub[,start[,end]])
>>> str = "www.xnip.cn" >>> str.find('.')
>>> str = "www.xnip.cn" >>> str.find('.',2)
>>> str = "www.xnip.cn" >>> str.find('.',2,-4)
>>> str = "www.xnip.cn" >>> str.rfind('.')