개발고양이발

  • 홈
  • 태그
  • 방명록
  • 글쓰기
  • 설정

Python 2

[Python] module 사용 종합 버전(json, os, dict, shutil, string)

import json import os.path import shutil '''json''' # 읽기 with open('경로', "r") as file: json_data = json.load(file) # 쓰기 with open('경로', "w") as file: json.dump(json_data, file, indent="\t") # indent = "\t" : 들여쓰기 포함 '''os''' # 디렉토리 생성 os.makedirs('경로') # 경로 존재 확인 if os.path.exists('경로'): print("있다") # 해당 경로에 있는거 열기 os.startfile('경로') # 절대 경로 찾기 os.path.abspath('경로') # 파일 제거 os.remove('경로') # 경로의..

Python 2023.07.27

[Python] os.starfile() 에서 상대 경로를 사용할 수 있다? 없다?

os.starfile(path) : path에 있는 경로로 파일 열기 상대 경로 사용 불가능 절대 경로로 지정해야 파일을 직접 열 수 있다 참고 https://velog.io/@djung/%ED%95%A8%EC%88%98os.system-os.startfile

Python 2023.07.26
이전
1
다음
더보기
프로필사진

개발고양이발

이세계에서 살아남기

  • 분류 전체보기
    • 프로그래밍 문제
    • Unity
      • UnityEditor
      • 게임 개발 스터디
      • 문제 해결
      • 최적화
      • 잡학 사전
    • C#
    • Python
    • TypeScript
    • MSBuild
    • Vue
      • 문제 해결
    • 통합 관리
      • 단축키
      • 문제 해결
      • SourceTree
    • 끄적

Tag

animationcurve, unity, renderQueue, sourcetree, 문제해결, addreassable, Sprite Atlas, ui-toolkit, 최적화, LINQ, 잔디, vue, UnityHub, animation, unity-editor, GitHub, particlesystem, GitHub Desktop,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :
Sol Han : Github 소리 : 네이버 블로그

Copyright © Kakao Corp. All rights reserved.

티스토리툴바