0
我需要一些关于如何解析列表和打印特定值的想法,让我们说我想解析dependsontext,然后只打印数字“249452”,请建议想法如何解析列表以获取值
INPUT:-
dependsontext = [{u'isCurrentPatchSet': True, u'revision': u'ad0beef66e5890cde6f0961ed03d8bc7e3defc63', u'ref': u'refs/changes/52/249452/1', u'id': u'Iad0beef66e5890cde6f0961ed03d8bc7e3defc63', u'number': u'249452'}]
OUTPUT:-
249452
http://docs.python.org/2/tutorial/datastructures.html – monkut 2013-02-22 04:02:25
你有一个字典(在列表中) – wim 2013-02-22 04:06:52