python 遍历本地文件

files = os.listdir("./")
for f in files:
  if f.lower()[-3:] == "mp4":
    print (f)

posted @ 2018-02-04 15:51  winniez  阅读(333)  评论(0编辑  收藏  举报