On 08/22/2012 03:17 AM, mingqiang hu wrote: > I mean any of "a","b","c" in string "adfbdfc" makes the statement true,can > I not use a function?
any(map(string.__contains__, substrings)) -- http://mail.python.org/mailman/listinfo/python-list
On 08/22/2012 03:17 AM, mingqiang hu wrote: > I mean any of "a","b","c" in string "adfbdfc" makes the statement true,can > I not use a function?
any(map(string.__contains__, substrings)) -- http://mail.python.org/mailman/listinfo/python-list