【发布时间】:2011-08-04 11:21:43
【问题描述】:
系统生成一个文本文件。它包含 100 多行。我喜欢在文件中找到一行。
some text **
Actions Pending are: Action-1, Action-2,....Action-3 (this is another new line)
some text**
需要获取待处理的动作到数组。
我用过
for index in text:
rc.logMessage(str(index))
它一次打印每个字符而不是一行。
帮助我如何解析此文件以将操作放入数组中。
提前致谢
【问题讨论】: