我正在阅读“Python速成班”一书,我已经完成了一项关于将列表的副本作为参数传递给函数的练习。我既不能解决这个问题,我也不完全清楚作者提出的解决办法。这是练习案文:
“不变的魔术师:从练习8-10开始工作。使用魔术师姓名列表的副本调用函数make_great()。Because the original list</e
File "C:\pythonwork\readthefile080410.py", line 120, in medications_minimum3TypeError: unhashable type: 'list'data=medications_minimum3(data,[drug.upper()],1)下面是此函数的预览