Python: get information about current operating system

To get information about the operating system, on which our code is executed, we can use the “platform” module.

system

The system() method of this moduel returns the text name of the operating system:

release

The release() method returns the release number or the text name of the current OS release:

platform

The platform() method returns the string with a more detailed OS description:

version

The version() method returns the version of the current OS:

architecture

The architecture() method returns the tuple with the architecture of the current operating system:

0 0 votes
Article Rating
Subscribe
Notify of
0 Комментарий
Newest
Oldest Most Voted
Inline Feedbacks
View all comments