我有一些编程经验,但对python还不熟悉。我有一个要解析的输出文件。计算机可能处于两种状态:
我想写一个简单的程序,获取输出文件并创建两个列表…一个是状态为1的计算机,另一个是状态为2的计算机。你知道吗
输出文件如下所示:
BitLocker Drive Encryption: Configuration Tool version 6.1.7601
Copyright (C) Microsoft Corporation. All rights reserved.
Computer Name: AAAAA
ERROR: A compatible Trusted Platform Module (TPM) was not detected.
---
BitLocker Drive Encryption: Configuration Tool version 6.1.7601
Copyright (C) Microsoft Corporation. All rights reserved.
Computer Name: BBBBBB
为了测试,我总结了以下内容:
它回来了
如何跟踪当前计算机的状态,然后检查错误消息。你知道吗
未测试代码-
相关问题 更多 >
编程相关推荐