티스토리 뷰
from filecmp import cmp
fileName = "./TestImage.jpg"
fileName2 = "./TestImage2.jpg"
fileSize = os.path.getsize(fileName)
isSameFile = cmp(fileName, fileName2)
if isSameFile:
if os.path.isfile(fileName2):
os.remove(fileName2)반응형
'SWDesk' 카테고리의 다른 글
| [Pytyon] DataFrame - dict (0) | 2022.07.25 |
|---|---|
| [Python] DataFrame - Dict - json (0) | 2022.07.24 |
| [Python] Selenium Edge (0) | 2022.07.20 |
| [Python] DataFrame 날짜순으로 정렬 (0) | 2022.07.19 |
| [Python] 문자열에 한글이 있는지 여부 확인 (0) | 2022.07.17 |
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 허들
- Innovations&Hurdles
- ServantClock
- BiliChild
- DYOV
- Video
- 둎
- 전류
- Innovations
- 티스토리챌린지
- image
- arduino
- 치매
- 심심풀이
- 심심풀이치매방지기
- Innovation&Hurdles
- 치매방지
- Hurdles
- 빌리언트
- 혁신과허들
- 혁신
- 절연형
- Decorator
- 전압
- 빌리칠드
- 배프
- 오블완
- bilient
- 아두이노
- BSC
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
글 보관함

