Jul-26-2017, 12:33 PM
You need to post your code, output and errors between their respective tags. Refer to the Help Document on how to properly post a question. Otherwise people have to guess what you're trying to do, or not respond at all.
I am guessing that by this:
I am guessing that by this:
import osfiles = os.popen('dir *.py')fileit = iter(files)for file in files: print(file)you actually mean this:
import os files = os.popen('dir *.py') fileit = iter(files) for file in files: print(file)
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition