numpy、pandas、Counter、结巴
1 处理数据a = ['1 23', '12 28', '25 35', '27 80', '36 50']for i in range(len(a)): temp = a[i].split(' ') temp = list(map(int, temp)) turple = (temp[0], temp[1]) a[i] = turpleprint(a)————结果:[(1, 23), (12, 28), (25, 35), (27, 80), (36, 50)