Advertisement
3axapukc

Untitled

Feb 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import os
  2.  
  3. for n in range(1,10):
  4.     name = 'dir_' + str(n)
  5.     os.mkdir(name)
  6.  
  7. input('press anykey ')
  8.  
  9. for n in range(1,10):
  10.     name = 'dir_' + str(n)
  11.     path = os.path.join(os.path.abspath(os.path.dirname(__file__)), name)
  12.     os.rmdir(path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement