Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aList = [ (1, 545985180000, 'device_id_hao', 'vol', None, 12.0),
- (1, 545985180000, 'device_id_hao', 'temp', None, 38.0),
- (2, 545985300000, 'device_id_hao', 'vol', None, 220.0),
- (2, 545985300000, 'device_id_hao', 'temp', None, 39.0)];
- =>
- [
- (545985180000, 'device_id_hao', {'vol': 12.0, 'temp': 38.0})
- (545985300000, 'device_id_hao', {'vol': 220.0, 'temp': 39.0})
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement