About Python Computers

Asked 2 years ago, Updated 2 years ago, 14 views

Hello, I'm learning Python Just Windows version and System (processor, installed memory, system type) Computer Name, Domain, and Workgroup Properties (computer name, full computer name)

I'd like to print these out on Python, what should I do?

python

2022-09-21 10:10

1 Answers

I don't know how much detailed information you want, but most of the information you mentioned seems to be available by importing a library called platform.

https://docs.python.org/ko/3/library/platform.html

Please refer to the link above

For user names

import getpass
getpass.getuser()

can be obtained from

For other necessary information, search python (information).


2022-09-21 10:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.