[Python] Why won't this Python module import into my code [duplicate]

Discussão em 'Python' iniciado por Stack, Janeiro 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have this entry point:

    # main.py

    from 022 import *

    print("Hello from main.py")


    I have 022.py also. It is:

    print("Hello World")


    When I run main.py I get this error:

    File "C:\Users\nicholdw\source\repos\InClass20250121-4010-001\InClass20250121-4010-001\mainPackage\main.py", line 3
    from 022 import *
    ^
    SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

    Continue reading...

Compartilhe esta Página