Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How python generates Desktop folders

Shulou Source: shulou.com Published: 2022-05-31 11:12:47 10月30日 Update

This article mainly introduces the relevant knowledge of "how python generates desktop folders". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to generate desktop folders in python" can help you solve the problem.

Specific operation steps:

1. In the win system, use the shortcut key [win+r] to open the running window and type "cmd" to open the command line mode.

2. Enter the following command in command line mode to switch to the desktop path.

Cd desktop

3. Enter python mode by using the following command.

Python

4. Operating the file in python requires importing the os module, so enter the following command to import.

Import os

5. Finally, create a new folder through the command of the mkdir function.

Os.mkdir ('folder name')

This is the end of the introduction to "how python generates desktop folders". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Files commands folders desktops generation patterns knowledge input industries different practical content functions practical shortcuts articles methods more cases Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology Redmi NVidia Shulou Tech Info