python在指定的目录下查找gif文件,python指定查找gif,#!/usr/bin/p
python在指定的目录下查找gif文件,python指定查找gif,#!/usr/bin/p
#!/usr/bin/python# Use the standard find method to look for GIF files.import sys, findif len(sys.argv) > 1: dirs = sys.argv[1:]else: dirs = [ '.' ]# Go for it.for dir in dirs: files = find.find('*.gif', dir) if files: print "For", dir + ':' for fn in files: print " ", fn else: print "For", dir + ': None'
相关内容
- python每隔N秒运行指定的函数程序,python每隔,import osi
- 一个简单的爬虫,简单爬虫,import urlli
- 生成4位字母数字组合密码字典,4位密码字典,f=open("
- 域名转IP 2种方法,域名转ip2种,#!/usr/local
- Django 模板中使用css, javascript,djangocss,(r'^css/(?P<
- python在Windows8下获取本机ip地址,pythonwindows8,import sock
- python 自动重启本程序,python重启程序,#!/usr/local
- 循环处理序列中的值,循环处理序列,#!/usr/bin/p
- python一句话将数组中的全部字符串转换成小写,python小
- Plots data points and the fitting polynomial using Python,plotspoly
评论关闭