我有一个程序的输出作为文本,如:
------------
Action specified: GetInfo
Gathering information...
Reported chip type: 2307
Reported chip ID: 98-DE-94-93-76-50
Reported firmware version: 1.08.10
------------
但我必须只保存Reported chip type: value "2307"
在一个变量中。怎么可能?