Python如何读取文件

43次阅读

共计 1733 个字符,预计需要花费 5 分钟才能阅读完成。

有这么一份 log:会随着时间进行增长 01/07/2019 12:35:10 D OITL [OPER]CmdButton: AUDIOALARMOFF01/07/2019 12:35:10 I LTPL Audio Alarm acknowledged01/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 RobotPage01/07/2019 12:35:29 D OITL Page: ‘RobotPage’, Timeout: 300 sec01/07/2019 12:35:30 D OITL [OPER]CmdButton: EXEC RETRY ROBOT 001/07/2019 12:35:30 I STRT EXEC RETRY ROBOT 001/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 Move01/07/2019 12:35:31 D STRT Retry BC 1,CB 17, FC 14, TC 4701/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 Running01/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: Main01/07/2019 12:35:31 D OITL Page: ‘Main’, Timeout: 300 sec01/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:001/07/2019 12:35:33 D GNMK TransmitCommand 7, GET %s, %s01/07/2019 12:35:33 D GNMK GNMK Sending:GET A, 17
我要从文末开始读取,读到 GNMK Sending:PUT 后存到数据库并每隔 2min 从文件末尾往前读,不知道怎么进行

正文完
 0