摘要:
Problem:检查字符串中是否存在某些字符的集合Solution:下面的方法可以用在任何的序列容器中def containsAny(seq, aset): """ Check whether sequence seq contains ANY of the items in aset. """ for c in seq: if c in aset: return True return Fals... 阅读全文
posted @ 2010-06-01 13:04
Py&禅
阅读(222)
评论(0)
推荐(0)
浙公网安备 33010602011771号