【发布时间】:2019-10-02 13:39:23
【问题描述】:
我有以下嵌套字典:
[[u'bob', u'fred'], [u'sanders', u'harris'], [u'bob@xyz.com', u'fredharris@abc.com'], ['user1 password', 'user2 password']]
打印我得到的键/值:
1:鲍勃
1:弗雷德
2:桑德斯
2:哈里斯
3: bob@xyz.com
3: 弗雷德哈里斯@abc.com
4:user1密码
4:user2密码
我在 Python 2.7 中找不到获得以下输出的方法:
bob[tab]sanders[tab]bob@xyz.com[tab]user1 password
fred[tab]harris[tab]fredharris@abc.com[tab]user2 password
你能帮帮我吗?
【问题讨论】:
标签: python gae-python27