f = open("作业一素材1.txt",'r',encoding='utf-8')
stringData=f.read()
print('stringData:', stringData)
sentence=stringData.split("\n")
print('该文档中出现的最后一个句子为{}'.format(sentence[-3]))
Words=sentence[-3].split()
last_word=Words[-1].strip(".")
print('最后一个{}的长度为{}'.format(last_word,len(last_word)))