Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import os
  2. for d, subd, files in os.walk(os.getcwd()):
  3.     for fil in files:
  4.         print(fil.__str__())
  5.         print("")
  6.         fil.__str__().find("mp4")
  7.         if fil.__str__().find("mp4") == 5:
  8.             print("Пошла жара")
  9.             with open("out.mp4", "ab") as out_file, open(fil.__str__(), "rb") as in_file:
  10.                 out_file.write(in_file.read())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement