f = open('作业一素材.txt') txt = f.read() f.close() end=txt.find('顺丰控股股份有限公司') real_txt=txt[:end] process_txt=real_txt.split(' ') phrase=process_txt[-1] word=phrase.replace('.\n','') print(word) ls=list(word) number=len(ls) print(number)
无