Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import os
  2.  
  3. def test(file):
  4.     # hna ghadi ikoun test
  5.     return "{}!@#$$".format(file)
  6.  
  7. path = "."
  8. for  root, dirs, files in os.walk(path):
  9.     first = 0
  10.     last = 3
  11.     for i in range(0,len(files),3):
  12.         te = list(map(test,files[i:i+3]))
  13.         print(te)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement