IOError when trying to open existing files
问题 I have a small issue with a python program that I wrote to extract some information from a special text file. The loop (code below) needs to execute my function extract_zcoords() over 500 files (1 file gives one list) so that I can build a dataset. import os def extract_zcoord(filename): f = open(filename, 'r') ... # do something with f ### LOOP OVER DIRECTORY location = '/Users/spyros/Desktop/3NY8MODELSHUMAN/HomologyModels' for filename in os.listdir(location): extract_zcoord(filename) THE