解析:
theCopy做了赋值,当kvps['1'] = 5改变时,theCopy也改变了,所以最终结果为10
#!/usr/bin/python Kvps = {'1':1,'2':2} theCopy = kvps kvps['1'] = 5 sum = kvps['1'] + theCopy['1'] print(sum)
验证答案