参考链接: (50条消息) Python常见错误:ValueError: If using all scalar values, you must pass an index(四种解决方案)_小白白白又白cdllp的博客-CSDN博客_if using all scalar values, you must pass an index