从下面的字符串,我想提取分隔符之间的单词,[ ]如'Service Current','Service','9991','1.22':
str='mysrv events Generating Event Name [Service Current], Category [Service] Test [9991] Value [1.22]'
Run Code Online (Sandbox Code Playgroud)
如何在python中提取相同的内容?
在此先感谢Kris
python ×1