摘要:
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... 阅读全文