This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import glob | |
from PIL import Image | |
for infile in os.listdir('.'): | |
if infile in glob.glob('*.py'): | |
pass | |
else: | |
f, e = os.path.splitext(infile) | |
outfile = f + ".gif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
dd = ['十', '一', '二', '三', '四', '五', '六', '七', '八', '九'] | |
for item in os.listdir('.'): | |
fname = str(item) | |
# a=len(fname) | |
new = '' | |
for i in range(len(fname)): | |
if fname[i] in dd: |