我对python很陌生,而且我在编程方面没有太多经验。我尝试从特定目录打开 CSV 文件,但出现错误。
import csv
ifile = open('F:\Study\CEN\Mini Project\Data Sets\test.csv', "rb");
错误:
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
ifile = open('F:\Study\CEN\Mini Project\Data Sets\test.csv', "rb");
IOError: [Errno 22] invalid mode ('rb') or filename: 'F:\\Study\\CEN\\Mini Project\\Data Sets\test.csv'
该怎么办 ????