我有str格式的输出
Port Name Intvl In Mbps % In Kpps Out Mbps % Out Kpps
Et7/1 5:00 338.2 3.4% 31 0.0 12.3% 121
Run Code Online (Sandbox Code Playgroud)
我需要确定所有百分比,即3.4和12.3.做同样事情的最pythonic方法是什么
find_all with % just给出了索引,有没有更好的方法来实现呢?