#pythonprogramming #coding #jupyternotebook #windows #pythoncode #programming #python #datascience

preview_player
Показать описание
windows python roulette
Рекомендации по теме
Комментарии
Автор

os.remove is to remove files, so that won’t work on a directory, you would technically have to use os.rmdir, but I’m pretty sure that won’t work on a directory with files inside. The right function to use is shutil’s rmtree function, with the command to ignore errors (this way it won’t stop when it stumbles onto an “file in use” or “not enough permissions” error, while still deleting the important files.

Another big problem that I see is that the directory is written using /, but that’s Linux not windows, windows uses backslashes (\). Just make sure to specify that the string is a raw one because a backslash in Python is an escape sequence

eeeeee
Автор

He be like " i said you choose between 1 to 10 "😂

abmastergaming
Автор

It is written in Mac OS environment (you can see the menu buttons of the window in left corner) so probably throw an error

Ashutosh_Mishra_
Автор

Nah you're good, there's an indentation error

lokeshmishra
Автор

this is joke so take it in that way 😂😂

jayprakashyadab
Автор

Bhai disclaimer de diya kr beginner dont try this at home

chiraggupta
Автор

Jokes on you, the user running python script doesn't have necessary permission to remove System Directory and os.remove command is used to delete file and not directory 😂😂😂

MK-youtube
Автор

Friend will never play this game again☠️

cybersecurity
Автор

Bro thinks that typing anything on python can change the registry editor and local directory 😂

AryanSingh-djbj
Автор

\w & \S will be escaped so program wont even run lol

ryanlog