姓名:李方诺 学号:4201479
f = open("作业一素材.txt",mode="r",encoding="utf-8")
lines = f.readlines() #读取文档
line = lines[-3] #识别正文最后一句话
words = line.split(" ")
word = words[-1] #识别本句中最后一个单词
word = word.replace("\n", "")
word = word.replace(".", "") #去除多余分隔符
print(word) #输出单词本身
x = len(word)
print(x) #令其数数并输出单词字数
period 6