TechNote.kr

  • 홈
  • 태그

Python3 1

Python - pathlib, File/Directory Path 관련 모듈

>>> from pathlib import Path >>> Path("/home/ubuntu") PosixPath('/home/ubuntu') pathlib 는 python 3.4 에서 처음 소개 되었다. 서로 다른 운영체제의 파일 시스템에서도 동일한 코드를 통해 동작할 수 있도록 Object-oriented (객체지향)으로 구현되어 있는 특징이 있다. I/O 동작 포함 여부에 따라 다음과 같이 2가지 형태로 구분된다. PurePath : 실질적인 File system 접근 (I/O 동작) 없이 File/Directory Path 만 계산 PurePosixPath : non-Windows 파일 시스템의 특성에 따라 동작 수행 PureWindowsPath : Windows 파일 시스템의 특성에 따라 동작 ..

카테고리 없음 2019.09.02
1
더보기
  • TechNote.
    • Android
    • Language
      • R
      • C
      • Java
      • Python
      • Kotlin
      • HTML
      • Javascript
      • nvd3.js
      • Node.js
    • OS
      • Windows
      • Linux
      • Mac
      • OpenWRT, LEDE
    • Network
      • Wi-Fi
    • Products & Services
      • Django
      • AmazonWebService (AWS)
      • VirtualBox
      • Adsense
      • WordPress
      • Tistory
      • VS Code
      • Docker
    • Database
    • Application
      • KidsTube
      • Notepad++
    • Computer architecture
    • Software architecture
    • ETC

최근글과 인기글

  • 최근글
  • 인기글

Copyright © Kakao Corp. All rights reserved.

티스토리툴바