ResultSet({'('LocationUser', None)': [{'time': '2023-05-23T10:50:14Z', 'TagId': '20230523105014', 'beaconNo': '926003a4', 'buildId': None, 'userId': '1', 'xCoor': 119.1239942714452, 'yCoor': 37.01608027578695, 'zCoor': 2}, {'time': '2023-05-23T10:50:24Z', 'TagId': '20230523105024', 'beaconNo': '926003a4', 'buildId': None, 'userId': '1', 'xCoor': 119.1239942714452, 'yCoor': 37.01608027578695, 'zCoor': 2}, {'time': '2023-05-23T10:51:52Z', 'TagId': '20230523105152', 'beaconNo': '926003a4', 'buildId': ' ', 'userId': '1', 'xCoor': 119.1239942714452, 'yCoor': 37.01608027578695, 'zCoor': 2}]})如何取到926003a4这个值
时间: 2023-07-26 09:04:35 浏览: 151
可以通过以下方式取到926003a4这个值:
```
resultset = ResultSet({'('LocationUser', None)': [{'time': '2023-05-23T10:50:14Z', 'TagId': '20230523105014', 'beaconNo': '926003a4', 'buildId': None, 'userId': '1', 'xCoor': 119.1239942714452, 'yCoor': 37.01608027578695, 'zCoor': 2}, {'time': '2023-05-23T10:50:24Z', 'TagId': '20230523105024', 'beaconNo': '926003a4', 'buildId': None, 'userId': '1', 'xCoor': 119.1239942714452, 'yCoor': 37.01608027578695, 'zCoor': 2}, {'time': '2023-05-23T10:51:52Z', 'TagId': '20230523105152', 'beaconNo': '926003a4', 'buildId': ' ', 'userId': '1', 'xCoor': 119.1239942714452, 'yCoor': 37.01608027578695, 'zCoor': 2}]})
beaconNo_value = resultset['(LocationUser, None)'][0]['beaconNo']
print(beaconNo_value)
```
输出结果为:
```
926003a4
```
阅读全文