Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {'type': 'doi', 'id': '10.16472/j.chinatobacco.2017.045'},
- {'type': 'pissn', 'id': '1004-5708'},
- {'type': 'eissn', 'id': '1004-5708'}
- ]
- deissnlist = []
- for i in range(0,lengthD):
- deissnlist.append(doajresult[i]['bibjson']['identifier'][3]
- ['id'])
- input = [
- {'type': 'doi', 'id': '10.16472/j.chinatobacco.2017.045'},
- {'type': 'pissn', 'id': '1004-5708'},
- {'type': 'eissn', 'id': '1004-5708'}
- ]
- result = [x.get('id') for x in input]
- print(result)
- ['10.16472/j.chinatobacco.2017.045', '1004-5708', '1004-5708']
- result = [x.get('id') for x in input if x.get('type') == 'eissn']
Add Comment
Please, Sign In to add comment