我一直在尝试使用不同的字典在字典中的列表末尾添加一个值。分配有点复杂,所以我将问题简化为这三行,但结果不断得到 None 。
finley = {'a':0, 'b':2, 'c':[41,51,61]} crazy_sauce = {'d':3} print finley['c'].append(crazy_sauce['d'])
python dictionary
dictionary ×1
python ×1