module ‘os’ has no attribute ‘mknod’

The reason is that the code is running under Linux, but I am running under Windows. The ‘OS’ module in WIN is different, which does not have this property. Please modify it as follows:

os.mknod(os.path.join(args.save_path, "{}.lst".format(args.set)))

Instead, the final “w” is added according to your own needs.

open(os.path.join(args.save_path, "{}.lst".format(args.set)),"w")


Read More: