Tag Archives: python problem

Solve the oserror: [errno 22] invalid argument: ‘u202ad’ in Python

. OERROR: [Errno 22] Invalid argument: ‘\u202aD

The following code

file1 = open('‪D:\watermelon.csv','r')

If you directly copy the path as shown below,

                                        

If there is an error, please manually type the path. Modify D–>; d:

file1 = open('d:\watermelon.csv','r')

And then it worked out…