Python如何读取文件

栏目: Python · 发布时间: 5年前

内容简介:有这么一份log:会随着时间进行增长01/07/2019 12:35:10 D OITL [OPER]CmdButton: AUDIOALARMOFF01/07/2019 12:35:10 I LTPL Audio Alarm acknowledged

有这么一份log:会随着时间进行增长

01/07/2019 12:35:10 D OITL [OPER]CmdButton: AUDIOALARMOFF

01/07/2019 12:35:10 I LTPL Audio Alarm acknowledged

01/07/2019 12:35:10 D SECS FA_IfaceCn: ProcessStringCommand:'EVENT: AUDIO ALARM ACK'

01/07/2019 12:35:29 D OITL [OPER]CmdButton: PAGE RobotPage

01/07/2019 12:35:29 D OITL Page: 'RobotPage', Timeout: 300 sec

01/07/2019 12:35:30 D OITL [OPER]CmdButton: EXEC RETRY ROBOT 0

01/07/2019 12:35:30 I STRT EXEC RETRY ROBOT 0

01/07/2019 12:35:31 D STRT CmdItem #6 Deltas:-S- Cmd:MoveWafer State:Acknowledged CmdStr:'EXEC MOVEWAFERR 6 A 17 P 1 0' TaskID:6 [from Cmd:MoveWafer State:Retry TaskID:6]

01/07/2019 12:35:31 D STRT Stratus.FA_Main: LightTower state changed to 'PROCESSING' [from 'ERROR']

01/07/2019 12:35:31 I STRT Stratus.FA_Main: Changing E30 EquipProcState to 'Processing' (4)

01/07/2019 12:35:31 D SECS FA_IfaceCn: ProcessStringCommand:'ChangeEquipmentProcessingState 4'

01/07/2019 12:35:31 I SECS EquipmentProcessingState changed to 'Processing' (4)

01/07/2019 12:35:31 I STRT Retrying Robot Move

01/07/2019 12:35:31 D STRT Retry BC 1,CB 17, FC 14, TC 47

01/07/2019 12:35:31 D STRT CmdItem #6 Deltas:-S- Cmd:MoveWafer State:Starting CmdStr:'EXEC MOVEWAFERR 6 A 17 P 1 0' TaskID:6 [from Cmd:MoveWafer State:Acknowledged TaskID:6]

01/07/2019 12:35:31 I NSPE .187 SCHED_MOVEWAFER_RETRY: ----- START -----

01/07/2019 12:35:31 I STRT Move Wafer State Changed to Running

01/07/2019 12:35:31 D STRT CmdItem #6 Deltas:-S- Cmd:MoveWafer State:Running CmdStr:'EXEC MOVEWAFERR 6 A 17 P 1 0' TaskID:6 [from Cmd:MoveWafer State:Starting TaskID:6]

01/07/2019 12:35:31 D OITL [OPER]TabView: Main

01/07/2019 12:35:31 D OITL Page: 'Main', Timeout: 300 sec

01/07/2019 12:35:32 I NSPE .984 GNMK_Get_Wafer: Get Wafer from station

01/07/2019 12:35:32 I GNMK [12:35:32.999] Command: Get Wafer, Status=2, FGI:0

01/07/2019 12:35:33 D GNMK TransmitCommand 7, GET %s, %s

01/07/2019 12:35:33 D GNMK GNMK Sending:GET A, 17

我要从文末开始读取,读到GNMK Sending:PUT后存到数据库

并每隔2min从文件末尾往前读,不知道怎么进行


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Photoshop Anthology

The Photoshop Anthology

Corrie Haffly / SitePoint Pty. Ltd. / 2006 / USD 39.95

The Photoshop Anthology is full-color, question-and-answer book for Web Designers who want to use Photoshop to build Websites and create better looking web graphics more effectively. The book covers: ......一起来看看 《The Photoshop Anthology》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具