请问为什么我的python显示csv没有reader
import csv
with open(b'C:\Users\Lenovo\Desktop\Book1.csv')as f:
f_csv = csv.reader(f)
for row in f_csv:
print(row)
结果为:
Traceback (most recent call last):
File "C:/Users/Lenovo/Desktop/csv.py", line 1, in <module>
import csv
File "C:/Users/Lenovo/Desktop\csv.py", line 3, in <module>
f_csv = csv.reader(f)
AttributeError: module 'csv' has no attribute 'reader'