[python]os.path.exists() 파일 존재 체크하기
#!/usr/bin/python
import os
if not os.path.exists("./test.txt"):
print "test.txt file not exist"
if os.path.exists("./test.txt"):
print "test.text file exist"
root@byoungguk-desktop:~# ./existtest.py
test.txt file not exist
root@byoungguk-desktop:~# touch test.txt
root@byoungguk-desktop:~# ./existtest.py
test.text file exist
|
프로그램
태그 필터
1개 태그 선택됨
복수 태그 검색 (AND 조건)
여러 태그를 선택하면 모든 태그를 포함한 글만 표시됩니다.
예시:
"영카트5" + "그누보드5" 선택 시
→ 두 태그를 모두 포함한 글만 표시
"영카트5" + "그누보드5" 선택 시
→ 두 태그를 모두 포함한 글만 표시
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기