how to find whether a string in a another string..
- by zjm1126
a='1234;5'
print a.index('s')
thr error is :
> "D:\Python25\pythonw.exe" "D:\zjm_code\kml\a.py"
Traceback (most recent call last):
File "D:\zjm_code\kml\a.py", line 4, in <module>
print a.index('s')
ValueError: substring not found
thanks