python怎么循环播放_在python中循环播放文件名

其他方式:

from os import walk

>>> for filename, subdirs, dirs in walk('/home'):

... print (filename, subdirs, dirs)输出:

home/di/workspace/local2stream/mediaelement/.git/info [] ['exclude']

/home/di/workspace/local2stream/mediaelement/.git/logs ['refs']

['HEAD'] /home/di/workspace/local2stream/mediaelement/.git/logs/refs

['remotes', 'heads'] []

/home/di/workspace/local2stream/mediaelement/.git/logs/refs/remotes

['origin'] []

/home/di/workspace/local2stream/mediaelement/.git/logs/refs/remotes/origin

[] ['HEAD']

/home/di/workspace/local2stream/mediaelement/.git/logs/refs/heads []

['master'] /home/di/workspace/local2stream/mediaelement/.git/objects

['info', 'pack'] []

/home/di/workspace/local2stream/mediaelement/.git/objects/info [] []

/home/di/workspace/local2stream/mediaelement/.git/objects/pack []

['pack-a378eaa927a4825f049faf10bab35cf5d94545f1.idx',

'pack-a378eaa927a4825f049faf10bab35cf5d94545f1.pack']

/home/di/workspace/local2stream/mediaelement/.git/refs ['tags',

'remotes', 'heads'] []

/home/di/workspace/local2stream/mediaelement/.git/refs/tags [] []

/home/di/workspace/local2stream/mediaelement/.git/refs/remotes

['origin'] []

/home/di/workspace/local2stream/mediaelement/.git/refs/remotes/origin

[] ['HEAD']

/home/di/workspace/local2stream/mediaelement/.git/refs/heads []

['master']


版权声明:本文为weixin_30855745原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。