Skip to content

Code cannot run #10

@Wang-Qinyu

Description

@Wang-Qinyu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions