学号:4201370

姓名:丁涛

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