如何实现python中的'head'和'tail'命令以及文本文件的行后向读取?
python reverse file tail head
file ×1
head ×1
python ×1
reverse ×1
tail ×1