f = open(r'C:\Users\86177\Desktop\作业一素材.txt',encoding='utf-8')
txt = f.read()
f.close()
txt
index = txt.find('\n顺丰控股股份有限公司')
txt_target = txt[:index]
txt_target
e = txt_target.rfind('.')
s = txt_target.rfind(' ')
last_word = txt_target[s+1:e]
last_word
print(len(last_word))