// lxml.html test1
// An highlighted block
from lxml.html import fromstring,tostring
with open("1.txt",'r',encoding='utf-8') as f:
a = f.read()
a = fromstring(a)
b = a.xpath('//div',encoding='utf-8')
len_result = len(b)
for i in range(len_result):
c = b[i]
print(c.xpath('string(.)').strip())