f1=open('作业一素材.txt',mode='r',encoding='utf-8') text=f1.read() f1.close() lines = text. splitlines() line = lines[-3] words =line.split(' ') word=words[-1] word=word[0:-1] len(word)
6