Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #1

Open
iamyx123 opened this issue Aug 13, 2021 · 2 comments
Open

error #1

iamyx123 opened this issue Aug 13, 2021 · 2 comments

Comments

@iamyx123
Copy link

imgSrc = Image.open(sys.argv[1])                        # 打开源图像

IndexError: list index out of range

@InkEcau
Copy link

InkEcau commented Aug 13, 2021

使用命令行参数,而非直接运行,详情见视频,或者可以自己修改为
imgSrc = Image.open("文件路径")

@a2580vb
Copy link

a2580vb commented Aug 14, 2021

这个文件路径双引号前边应该加上r或者把文件路径中的""换成“/”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants