f = open('作业一附加选做题素材.txt', encoding='utf-8') text = f.read() lines = text.replace('\n', '') line = lines.split('。') lasts = line[len(line)-2] print(lasts) print(len(lasts))
多年来,顺丰持续创新,不断铸造高品质服务体验,为客户成功提供坚实有力的支持 37