Python如何反向遍历文本?

with open('test.text') as test:
for line in test:
.................
这是从最顶行往下过滤,但我想从最后一行依次往上开始查找,怎么办呢?

5 comments