Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- IOS
- urllib
- python
- 리눅스
- swift
- flutter
- PyQt
- port
- 유니티
- 함수
- 라즈베리파이
- MySQL
- 날짜
- MS-SQL
- mssql
- ASP
- sqlite
- Linux
- PyQt5
- 맛집
- node.js
- tensorflow
- Excel
- GIT
- Unity
- pandas
- javascript
- ubuntu
- 다이어트
- PER
Archives
목록endsWith (1)
아미(아름다운미소)
Python에서 확장자가 .wav .mp3 인 디렉토리의 모든 파일 찾기
Python에서 확장자가 .wav .mp3 인 디렉토리의 모든 파일 찾기 # -*- coding: utf-8 -*- ''' Created on 2018. 9. 5. @author: bhm ''' import os path = 'D:\RecData\Wav' files = os.listdir(path) filescnt_mp3 = [i for i in files if i.endswith('.mp3')] print len(filescnt_mp3) filescnt_wav = [i for i in files if i.endswith('.wav')] print len(filescnt_wav)
랭귀지/python
2018. 9. 7. 11:30