[Python] Trying to access the directory but got this error [duplicate]

Discussão em 'Python' iniciado por Stack, Maio 4, 2025.

  1. Stack

    Stack Membro Participativo

    import os
    directory_path = 'C:\Users\hp\Desktop\python tutorial'
    contents = os.listdir(directory_path)
    for item in contents:
    print(item)


    [​IMG]

    after running this code i got this error and i am unable to solve this error. Please help me to solve this problem and

    Continue reading...

Compartilhe esta Página