判斷一個字符串是否是另一個的子串:
>>> 'welcome' in 'WELCOME to'
False
>>> 'welcome' in 'welcome to'
True
忽視大小寫,這裏將字符串全部轉成小寫'WELCOME'.lower()
>>> 'welcome' in 'WELCOME to'
False
>>> 'WELCOME to'.lower()
'welcome to'
>>> 'welcome'.lower() in 'WELCOME to'.lower()
True