Os
import os
os.chdir(path) #cd
cwd = os.getcwd() #pwdGet all files in subdirs
for root, dirs, files in os.walk(PATH_TO_NOTES):
for file in files:
curFile = os.path.join(root, file)Get Environment
os.environ.get('SECRET_KEY')Files
#f is file object
f = open('workfile', 'w')
f.write("Now the file has one more line!")
f.close()
#To write bytes
with open(filename, 'wb') as f:
f.write(filebytes)Reading Data
With
Pickle
CPickle
Advanced OS*
Play Audio Files
Last updated