我希望能够从这本字典中打印出一个字符,但我还没能找到语法或在任何地方找到它。根据下面的代码,有没有办法在vanilla Python 2.7.x中执行此操作?
dct = {"c":[["1","1","0"],["0","0","0"]], "d":[["1","1","0"],["1","0","0"]],}
for x in dct:
print [x][0][0]
我希望输出为:11
非常感谢任何帮助!
答案 0 :(得分:0)
for x in dct:
print(dct[x][0][0])