取出 浏览数据的 键值对
s = '推荐 252阅读 14评论 0涨粉 0转发 0收藏 0' # 3.5万 for i in range(len(s) - 1): sub_ = s[i:i + 1] try: t = int(sub_) except Exception as e: s = s.replace(sub_, 'X') print(e) v_l = s.replace('XX', '').split('X')[1:] s = '推荐 252阅读 14评论 0涨粉 0转发 0收藏 0' # 3.5万 for i in range(len(s) - 1): sub_ = s[i:i + 1] try: t = int(sub_) s = s.replace(sub_, 'X') except Exception as e: print(e) k_l = s.replace('XX', 'X').replace('XX', 'X').split('X')[:-1] dd = 0