【发布时间】:2020-05-18 06:09:37
【问题描述】:
我想打印下没有qos的接口,, 我有如下的txt文件
interface 1
qos
trust
interface 2
trust
interface 3
trust
qos
interface 4
trust
trust
qos
interface 5
trust
interface 6
我希望输出如下(想要的输出):
interface 2
interface 5
interface 6
有什么帮助吗?
【问题讨论】:
-
欢迎来到 StackOverflow。当您发布问题时,请向我们提供您所做的事情。我们无法为您编写完整的代码。 :)
标签: python file search text line