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
- 다이어트
- port
- IOS
- node.js
- python
- PER
- GIT
- 날짜
- sqlite
- 리눅스
- Unity
- MySQL
- ASP
- flutter
- 유니티
- Linux
- Excel
- 함수
- javascript
- MS-SQL
- swift
- 라즈베리파이
- mssql
- urllib
- PyQt
- tensorflow
- pandas
- PyQt5
- 맛집
- ubuntu
Archives
목록Len (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