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? suppose I got lots of substring let's say > s1="a",s2="b",s3="c" ...,not wrap them as a tuple or a list , just make the > statement as simple as possible to check if any of the value is the > substring of S="fasfasdfgbefve". > You top-posted. And you're not bothering to really read the responses you're getting. Your problem statement is still ambiguous, and you're really asking for someone to write a custom language for you. So I'm done here.
-- DaveA -- http://mail.python.org/mailman/listinfo/python-list