📅  最后修改于: 2022-03-11 14:45:55.087000             🧑  作者: Mango
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")