RUVIDEO
Поделитесь видео 🙏

Free Python tutorial for beginners - OS Module - Unpacking the Hype around Python OS module

📁 Обучение 👁️ 16 📅 02.12.2023

Free Python tutorial for beginners - Python OS Module - Python Import OS module - How to create a directory, remove a file, changing the directory path, listing the directories, removing a directories

Subscribe Here -https://www.youtube.com/@KeeshtuTechnology?sub_confirmation=1

#python #pythonprogramming #pythontutorial #pythonforbeginners #youtubechannel #pythonbeginner #pythonprogrammingosmodule #pythonprogrammingimportosmodule #pythonosmodule #pythonimportosmodule#pythontutorialfree #pythonyoutube #pythonenglish #python #pythonprogramming #pythontutorial #pythonforbeginners #youtubechannel #pythoninstallationcomplete #pythonhowtoinstall #pythoninstall #pythondownload #pythontutorialfree #pythonyoutube #pythonenglish #pythonenglish

hello welcome to technology platform so today we are going to see the OS model in Python so let me show you like uh what is the purpose of this OS model let me open idle python

I'm opening that so now okay so here you can see we already uh just saw how to print how how to use that string and data types everything we have seen it now one more thing is like if there is any model in Python we have to use it um input so this command and Os so why we are using this OSS like we want to see the current path system path you want to see the current directory we want to list of the directories it's like files and directories functionalities let me show you now so here if you see that idle cell you don't know which path currently it is coming from so this kind of information so this OS will provide so how to use Oasis like first we have to import that model import OS now OS dot get cwt it will show you what is the current path So currently this python we installed in this folder this is what here it is showing to you so this kind of informations you can received it now if you want to change the directory from this path to some other path you want to change it then the command is like import OS or else not needed because already we used it OS then CH AAR and then path name so path name is like I need to go to the tutorial folder like this now if you see this now you can use it get CWD and you can see we are currently in tutorial so earlier we are used in Python now we change to tutorial path so now I'll show you here is like in this tutorial this is our desktop tutorial model this is what python I want to create a folder here right so how to create a folder let's see now

go to the just idle now currently you are in tutorial model

now you want to create a directory now see this OS Dot MK dir now you want to create the directory I just copy this

and then slash test folder like this I want to create a directory

I'll say like the OS model

like this I want to create a directory let's see how it's create foreign

let's see this if not then we can try to sum other format let's see this

kdar C drive and then OS model okay so it's a double quotes not a single course so here you can see this OS model has been created here now we have created a a directory like this now if you want to remove you can remove it by using RM dar but you want to list out what are the um files available in your system for example if we go to python so here these many files are there I want to see here let's see how to see this for that we are using listed here foreign

I'll remove this directory let's see how it works and then so [Music] it's removed so RM directory it's removing the directory and aim KD area making a directory or creating a directory now listing the directory let's see listing dar and then I can say like I'll simply put it like this for this also I will use it double quotes [Music]

okay for now I think

let's see

so sometimes the single quotes double quotes May create an issue it's fine let's see list out the directory okay okay I think this might be the issue yeah so here you can see

in this tutorial you can see this file and files folder and IMG and Python and everything so this is what uh you can list out here now you want to remove some file so if you want to create a file I will tell you later but if you want to remove a file let's see how to remove it here itself I am creating one test file

test.txt and then I'll remove like OS dot remove

and then double quotes [Music] and then this file

slash test dot txt double quotes let's see okay the file has gone now so like this you have to remove a file and adding a adding a file and writing a file that we can see it in the files and um file system manager but here now you can see it I just created a file manually and then I just showed you how it how it is working like this then I'll show you what is the OS name want to see it OS dot name let's see OS dot name yeah so it's like something this is what the name OS is currently using NT like this now the list directory itself let's see just type it like this here itself

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Free Python tutorial for beginners - OS Module - Unpacking the Hype around Python OS module», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.