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

Code cannot run #10

Open
Wang-Qinyu opened this issue Dec 17, 2020 · 0 comments
Open

Code cannot run #10

Wang-Qinyu opened this issue Dec 17, 2020 · 0 comments

Comments

@Wang-Qinyu
Copy link

Wang-Qinyu commented Dec 17, 2020

This program will throw the following error

File "encode.py", line 39, in encode
    x, y = range( height / 2 ), range(width)
TypeError: 'float' object cannot be interpreted as an integer

Then I Modify this line to

x, y = range( height / 2 ), range(width)

however, it throws a new error as follow:

File "C:\ProgramData\Anaconda3\lib\random.py", line 278, in shuffle
    x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment
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

1 participant