【发布时间】:2017-05-03 08:13:04
【问题描述】:
下面是文件输出
xyz abc
abc xyz
apple orranges fruits
train bus flight
airbus greatbus
vegetables not in place.
我必须找到模式“火车巴士航班”并删除所有上述行,包括火车巴士航班
输出应该是:
airbus greatbus
vegetables not in place.
谁能推荐一下。
谢谢
【问题讨论】:
-
那么你有什么尝试?向我们展示您的代码和您面临的问题
标签: python python-2.7