AttributeError: module ‘os’ has no attribute ‘mknod’

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 mknodnction, because there is no node concept on Windows. with open("file_name.txt", a+) as fpwith open("file_name.txt", a+) as fp.

Read More: