Analyzing python string contains the substring

Analyzing python string contains the substring

s = '1234 Q Volvo 434'
IF s.find ( 'Volvo') = -1:!
    Print ( 'present')
the else:
    Print ( 'absent')

 

Guess you like

Origin www.cnblogs.com/WebLinuxStudy/p/11430390.html