原有报错提示:
=============== RESTART: D:\python test\autotest_module\csv.py ===============
Traceback (most recent call last):
File “D:\python test\autotest_module\csv.py”, line 1, in
import csv
File “D:\python test\autotest_module\csv.py”, line 4, in
data = csv.reader(codecs.open(’./user.csv’, ‘r’ ,‘utf_8_sig’ ))
AttributeError: module ‘csv’ has no attribute ‘reader’
解决:csv.py --不要用csv命名,修改下名称即可