首页 > 解决方案 > python错误运行脚本列表索引超出范围

问题描述

我在这里找到了一个 python 脚本:https://github.com/vertuzz/spotyloader

csv 在这里尝试:https://www.upload.ee/files/12600304/98469854.csv.html

安装好requirements.txt---npm install在我的系统上安装了 .msi 包。

问题是脚本run.py:每个文件运行时都有list index out of range 如何解决这个问题?我已经在 github 上向开发人员发布了我的问题,但他不见了... tanxs 为您提供帮助。

标签: python

解决方案


这是一个示例:python run.py D:\newfolder D:\000
在 运行脚本时,D:\newfolder我已经放置了我的 csv 文件,我 对每个跟踪都有此错误:
python run.py D:\newfolder D:\000

D:\Python-3.8.1 x64>python run.py D:\newfolder D:\000
Levitating spotify:artist:6M2wZ9GZgrQXHCFfjv46we, spotify:artist:
4r63FhuTkUYltbVAg5TQnk
list index out of range
Failed Levitating spotify:artist:6M2wZ9GZgrQXHCFfjv46we, spotify:
artist:4r63FhuTkUYltbVAg5TQnk

推荐阅读