라벨이 platform인 게시물 표시

파이썬[Python]: platform - uname 메서드

platform 모듈 - uname 메서드(method) /// 설명 시스템(운영체제), 네트워크 이름, 릴리스 정보, 버전, 컴퓨터 구조 그리고 프로세서(하드웨어)를 반환합니다. ※ 형식 platform.uname() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.uname())   # uname_result(system='Windows', node=' ...   # system, node, release, version, machine, and processor   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - version 메서드

platform 모듈 - version 메서드(method) /// 설명 시스템(운영체제)의 릴리스 버전을 반환합니다. ※ 형식 platform.version() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.version())   # 10.0.19042   # the system’s release version   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - system_alias 메서드

platform 모듈 - system_alias 메서드(method) /// 설명 시스템(운영체제)의 별칭을 반환합니다. ※ 형식 platform.system_alias() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 7 8 9 10 import  platform   s_system  =  platform.system() s_release  =  platform.release() s_version  =  platform.version()   print (platform.system_alias(s_system, s_release, s_version))   # ('Windows', '10', '10.0.19042')   # (system, release, version) aliased   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - system 메서드

platform 모듈 - system 메서드(method) /// 설명 시스템(운영체제) 이름을 반환합니다. ※ 형식 platform.system() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.system())   # Windows   # the system/OS name   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - release 메서드

platform 모듈 - release 메서드(method) /// 설명 시스템(운영체제)의 릴리스 정보를 반환합니다. ※ 형식 platform.release() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.release())   # 10   # system’s release   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - python_version_tuple 메서드

platform 모듈 - python_version_tuple 메서드(method) /// 설명 파이썬 버전을 튜플로 반환합니다. ※ 형식 platform.python_version_tuple() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.python_version_tuple())   # ('3', '9', '7')   # ('major', 'minor', 'patchlevel')   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - python_version 메서드

platform 모듈 - python_version 메서드(method) /// 설명 파이썬 버전을 반환합니다. ※ 형식 platform.python_version() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.python_version())   # 3.9.7   # 'major.minor.patchlevel'   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - python_implementation 메서드

platform 모듈 - python_implementation 메서드(method) /// 설명 파이썬 구현에 관련된 문자열을 반환합니다. ※ 형식 platform.python_implementation() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.python_implementation())   # CPython   # the Python implementation: ‘CPython’, ‘IronPython’, ‘Jython’ and ‘PyPy’...   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - python_compiler 메서드

platform 모듈 - python_compiler 메서드(method) /// 설명 파이썬을 컴파일링하는 컴파일러에 관련된 문자열입니다. ※ 형식 platform.python_compiler() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.python_compiler())   # MSC v.1916 64 bit (AMD64)   # the compiler used for compiling Python   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - python_build 메서드

platform 모듈 - python_build 메서드(method) /// 설명 빌드를 시작한 파이썬 번호와 날짜를 반환합니다. ※ 형식 platform.python_build() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.python_build())   # ('default', 'Sep 16 2021 16:59:28')   # python build  number and date   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - processor 메서드

platform 모듈 - processor 메서드(method) /// 설명 프로세서(하드웨어) 정보를 표현합니다. ※ 형식 platform.processor() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.processor())   # Intel64   # Hardware processor(a digital circuit)   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - platform 메서드

platform 모듈 - platform 메서드(method) /// 설명 플랫폼에 대해서 가능한한 유용한 정보를 표현합니다. aliased 인자가 True 이면 별칭을 표현하며, terse 가 True 이면 최소한의 정보만 표현합니다. 참고: system_alias() ※ 형식 platform.platform() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 7 8 9 10 11 12 13 import  platform   print (platform.platform())   # Windows-10-10.0.19042-SP0 print (platform.platform(aliased = True ))   # Windows-10-10.0.19042-SP0 print (platform.platform(aliased = False ))   # Windows-10-10.0.19042-SP0 print (platform.platform(terse = True ))   # Windows-10   # A computing platform or digital platform is an environment # in which a piece of software is executed. # It may be the hardware or the operating system (OS) ... # # reference: https://en.wikipedia.org/wiki/Computing_platform   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - node 메서드

platform 모듈 - node 메서드(method) /// 설명 네트워크에서 사용하는 장치의 이름을 반환합니다. ※ 형식 platform.node() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 import  platform   print (platform.node())   # DESKTOP-DREETA8   # node(machine) name in network   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - machine 메서드

platform 모듈 - machine 메서드(method) /// 설명 컴퓨터 구조의 형식(machine type)을 반환합니다. 예) i386, AMD64 ... ※ 형식 platform.machine() reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 7 import  platform   print (platform.machine())   # AMD64   # machine type: i386, AMD64 ... # think about virtual machine   Colored by Color Scripter cs * 실행환경: Microsoft Windows 10 Homes * 인터프리터: 파이썬(Python 3.9) – 당신을 응원합니다. –

파이썬[Python]: platform - architecture 메서드

platform 모듈 - architecture 메서드(method) /// 설명 실행 가능한 파일의 구조를 반환합니다.(기본값으로 파이썬 인터프리터 바이너리를 사용합니다.) bit 구조(bit architecture)와 파일형식(linkage format)을 튜플로 반환합니다. 참고: sys.executable ※ 형식 platform.architecture(executable=sys.executable, bits='', linkage='') reference https://docs.python.org/3/library/platform.html#module-platform /// 예제 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import  sys import  platform   print (sys.executable)   # C:\Users\psych\anaconda3\envs\Practice\python.exe print (platform.architecture())   # ('64bit', 'WindowsPE') print (platform.architecture(executable = sys.executable))   # ('64bit', 'WindowsPE') print (platform.architecture(executable = r 'C:\Users\psych\anaconda3\envs\Practice\python.exe' ))   # ('64bit', 'WindowsPE') print (platform.architecture(executable = r 'C:\Users\psych\anaconda3\envs\Practice\venvlauncher.exe' ))   # ('64bit', '') print (platfor