python在指定的目录下查找gif文件,,#!/usr/bin/p
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实现的telnet客户端程序,pythontelnet,import getpa
- Solve simultaneous equations using the Newton-Raphson method in Pytho
- Use python to calculate the N smallest eigenvalues of a tridiagonal m
- python利用wmi模块统计windows下硬盘信息,pythonwmi,# -*- c
- python中if elif条件语句实用范例,pythonelif,marks = 99if
- python中字典dict的常用操作方法,python字典dict,#创建一空
- python通过socket实现网络广播代码,pythonsocket,import sock
- python使用 htmllib 分析网页内容,pythonhtmllib,import htmll
- python中localtime和gtime的区别及时区计算,localtimegtime,l
- python自动修改本机网关的代码,python网关,#!/usr/bin/p
评论关闭