#-*-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"不可写"

  

 

相关文章:

  • 2022-12-23
  • 2022-01-25
  • 2021-05-05
  • 2022-12-23
  • 2021-12-31
  • 2021-08-15
  • 2021-10-11
猜你喜欢
  • 2022-02-22
  • 2022-01-10
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2021-04-17
相关资源
相似解决方案