Python remove file deletion error windowserror: [error 2]

Today, when you use the remove (path) function of Python’s OS library to delete a file, you always report the error windowserror: [error 2], and this error means that the file does not exist. It’s right to check the path and file name repeatedly. I didn’t find out why for half an hour. Later, I finally found that I didn’t write the file suffix. If I didn’t write the suffix, I would report an error. It’s embarrassing

Similar Posts: