摘要: import sysdef is_substring(actual_str,pattern_str): if actual_str is None or pattern_str is None: print 'empty string' return if len(pattern_str)>len(actual_str): print 'substring pattern is longer than catual string' return indexes=[] for i in range(len(actua... 阅读全文
posted @ 2011-12-20 14:48 wyixin 阅读(519) 评论(2) 推荐(0) 编辑