AttributeError: module ‘OS’ has no attribute ‘mknod’
Today, I’m going to make a Python program for students to traverse the directory and count the homework submitted by students. I ran into this problem when I wanted to generate some test files from code, using os.mknod()
Python on Windows does not support the mknod
nction, because there is no node concept on Windows. with open("file_name.txt", a+) as fp
with open("file_name.txt", a+) as fp
.