파이썬 os.mkdir()

Jmnote (토론 | 기여)님의 2020년 1월 23일 (목) 14:10 판 (새 문서: ==개요== ;Python os.mkdir() ;파이썬 os.mkdir() <source lang='Python'> import os os.chdir('/tmp') os.mkdir('hello') print( 'hello' in os.listdir(os.getcwd()) ) # True os.rmdir(...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

Python os.mkdir()
파이썬 os.mkdir()
import os
os.chdir('/tmp')

os.mkdir('hello')
print( 'hello' in os.listdir(os.getcwd()) )
# True

os.rmdir('hello')
print( 'hello' in os.listdir(os.getcwd()) )
# False

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}