python 中移去文件的只读属性

 PYTHON中移去文件的只读属性

孙文涛 2008, Dec. 25th

 

如何在PYTHON中移去文件的只读属性, 用chmod命令stat.S_IWRITE

import os
import stat
os.chmod( filename, stat.S_IWRITE )


 

 

原文地址:https://www.cnblogs.com/SunWentao/p/1362587.html