Python platform module
platform module for viewing information about the current operating system, to collect a series of computer information systems version-digit type the name of the kernel and so on.
Instructions:
Import Platform # get the name of the operating system version number Plat = platform.platform Print ( " get the name of the operating system version number: " , Plat) # get the operating system-digit Architecture = platform.architecture () Print ( " acquisition median OS: " , Architecture) # get the type of computer Machine = platform.machine () Print ( " computer type: " , Machine) # get the name of the computer network the Node = platform.node () Print ( " get the computer network name: " , the Node) #A computer processor acquires information Processor = platform.processor () Print ( " Get Information Computer Processor: " , Processor) # access to all information the uname = platform.uname () for I in the uname: Print ( " . 1: " , I)
Print ( " get all the information: " , uname) Print (uname.system)