#-*-coding:UTF-8-*-
import os,sys
path = "C:\Users\def\PycharmProjects\untitled"
for fpathe,dirs,fs in os.walk(path):
for f in fs:
all_file = os.path.join(fpathe,f)
if os.access(all_file,os.W_OK):
print all_file + u"可写"
else:
print all_file + u"不可写"