标签: python python-3.x if-statement
以下两个if-else语句显示不同的结果。
if value in twins: tmp = twins[value] + [box] else: tmp = [box] twins[value] = tmp
if value in twins: tmp = twins[value] + [box] twins[value] = tmp else: tmp = [box] twins[value] = tmp
为什么会这样?