Guest User

Untitled

a guest
May 27th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. for filename in os.listdir('.'):
  2. for file in filename:
  3. with open(os.path.join('.',file), 'r') as f:
  4. print(len(f))
  5.  
  6. FileNotFoundError Traceback (most recent call last)
  7. <ipython-input-6-1702c8aca957> in <module>()
  8. 1 for filename in os.listdir('.'):
  9. 2 for file in filename:
  10. ----> 3 with open(os.path.join('.',file), 'r') as f:
  11. 4 print(len(f))
  12. 5
  13.  
  14. FileNotFoundError: [Errno 2] No such file or directory: './d'
Add Comment
Please, Sign In to add comment