f = open("D:\Anaconda\\1.txt", "r",encoding='utf-8') t = f.read().replace('.', '') a = t.split() print(len(a[-1]))