How to extract the number of the corresponding position in this string

% Cpu (s): 0.1 us, 0.1 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st

this is the result of the execution of a remote command. I want to separately mention the floating-point numbers before us, sy, ni, id, wa, hi, si, st in this result. How can I achieve this?

Nov.10,2021

-sharp -*- coding: utf-8 -*-
import re
x='%Cpu(s): 0.1 us, 0.1 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st'
y=re.findall(r'\d*\.?\d+',x)
print(y)
Menu