Python/platform: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable
== Informations on macOS with homebrew python 3.7 ==
! || Linux || macOS || Windows
{| class="wikitable"
! function || value
|-
|-
| platform.system() || || Darwin ||
| platform.system() || Darwin
|-
|-
| platform.machine() || || ||
| platform.macheine() || x86_64
|-
|-
| platform.processor() || || ||
| platform.processor() || i386
|-
|-
| platform.python_implementation() || || ||
| platform.python_implementation() || CPython
|}
|}
== Informations on Win10 64bits with Python 3.8.1 x86 version ==
<source lang="python">
print(platform.architecture())
print(platform.machine())
print(platform.node())
print(platform.platform())
print(platform.processor())
print(platform.release())
print(platform.system())
print(platform.version())
('32bit', 'WindowsPE')
AMD64
{{Computer Name}}
Windows-10-10.0.18362-SP0
Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
10
Windows
10.0.18362
</source>

Latest revision as of 03:45, 28 May 2020

Informations on macOS with homebrew python 3.7

function value
platform.system() Darwin
platform.macheine() x86_64
platform.processor() i386
platform.python_implementation() CPython

Informations on Win10 64bits with Python 3.8.1 x86 version

print(platform.architecture())
print(platform.machine())
print(platform.node())
print(platform.platform())
print(platform.processor())
print(platform.release())
print(platform.system())
print(platform.version())

('32bit', 'WindowsPE')
AMD64
{{Computer Name}}
Windows-10-10.0.18362-SP0
Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
10
Windows
10.0.18362