string1 = ''''' the stirng Has many line In THE fIle ''' list_of_string = string1.split() print list_of_string #将字符串分离开,放入列表中 print '*'*50 def case_insensitive_sort(liststring): listtemp = [(x.lower(),x) for x in liststring] listtemp.sort() return [x