Skip to content

The PIL library #5

@mqa666

Description

@mqa666

Hello
I am new to programming
Is this code written by Python version 2 or 3?
After I installed the pillow library and other libraries, the following message appeared in the program execution

Traceback (most recent call last):
File "D:\main.py", line 12, in
BOARD_WIDTH = int(args[1]) #CM
IndexError: list index out of range

To solve this problem, I did the following
args = [0, 2000,1 , 1, 300, 4000 ]
in
#GET INPUT CONSTANTS HERE

args = [0, 2000,1 , 1, 300, 4000 ]

args = sys.argv
I added and the program worked
Was my work wrong?
What should I do to improve the quality of the output?

please guide me

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