-
Change file format to wanted.Programing/Python 2012. 1. 21. 14:21#!/usr/bin/env python
import glob
import os.path
files = glob.glob('*');
for x in files:
if not os.path.isdir(x):
m = os.path.splitext(x)
m = os.path.split(m[0])
z = m[1]
os.rename (x, z + '.jpg')
'Programing > Python' 카테고리의 다른 글
[Django] 서버주소 0.0.0.0 (0) 2019.04.08 [Django] Invalid HTTP_HOST header:, You may need to add 'x.x.x.x' to ALLOWED_HOSTS (0) 2019.04.08 Emulating numeric types (0) 2019.03.29 [python] python setting on QtCreator (0) 2016.10.07 python-settuptools (0) 2012.06.16