标签: python python-3.x
请通过以下代码帮助我
with open('k.txt') as fhand: for line in fhand: if line.endswith('edu'): print(line)