我有一个字符串如下
{u'contentDescription': u'0 Minutes 3 SecondsElapsed3 Minutes 35 SecondsDuration', u'checked': False, u'clickable': False, u'scrollable': False, u'text': None, u'selected': False, u'enabled': True, u'bounds': {u'top': 1320, u'left': 48, u'right': 1032, u'bottom': 1386}, u'focusable': True, u'focused': False, u'checkable': False, u'longClickable': False, u'visibleBounds': {u'top': 1320, u'left': 48, u'right': 1032, u'bottom': 1386}, u'childCount': 0}
如何在python中解析这个字符串,以便获得持续时间之前和之后的数字。i、 e,3.35
它出现在弦的第一行。3分35秒。我只想以3.35的格式提取这些数字
你能指导我怎么做吗?我对Python还不熟悉。谢谢
my_str
是整个字符串,或者如果将其转换为字典,则它等于my_converted_dict['contentDescription']
:相关问题 更多 >
编程相关推荐