姓名:李怡 学号:4201489
导入文本
f = open("作业一附加选做题素材.txt", "r",encoding='utf-8')
输出结果:最后一个句子长度
t = f.read().split('。') t = t[-2] print("最后一句长度为:");print(len(t))
最后一句长度为: 38