In [1] tmp.content
Out [1] b'[\n{"_id":"DUT2236-bkcin128-11032016","InternetGatewayDevice":
{"DeviceInfo":{"SWV":{"_object":false,"_value":"0.02.01",
"_type":"xsd:string","_timestamp":"2018-11-07T13:47:17.373Z","_writable":false}}}}\n]'
現在我的程式碼如下:
import re
In [1] test_string = 'find: tmp.content'
pattern = 'DeviceInfo | SWV | 0.02.01'
ans=re.findall(pattern,test_string)
print(ans)
Out [1] []
出現的結果為空?
為何在Out [1] 沒有出現DeviceInfo.SoftwareVersion 0.02.01的訊息?
想請問一下,我是少做了甚麼?
懇請指點<(_ _)>