📜  如何在python代码示例中制作隐藏文件

📅  最后修改于: 2022-03-11 14:45:55.087000             🧑  作者: Mango

代码示例1
import os
# making a file called myFile.txt
open('myFile.txt', 'w')

# giving the file an attribute for hidden
os.system("attrib +h myFile.txt")