Python/platform: Difference between revisions
< Python
Jump to navigation
Jump to search
No edit summary |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| class="wikitable | == Informations on macOS with homebrew python 3.7 == | ||
! || | {| class="wikitable" | ||
! function || value | |||
|- | |- | ||
| platform.system() || | | platform.system() || Darwin | ||
|- | |- | ||
| platform. | | 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