import csv
import pandas as pd
import matplotlib.pyplot as plt
f = open('Maotai.csv','r',encoding='gb18030',errors='ignore')
Maotai= f.read()
f.close()
Clsprc = Maotai.Clsprc
print(Clsprc.describe())
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files\JetBrains\PyCharm 2018.3.5\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2018.3.5\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:/pycharm文件/test.py", line 7, in <module>
Clsprc = Maotai.Clsprc
AttributeError: 'str' object has no attribute 'Clsprc'
请问这个问题要怎么解决啊 感激不尽!!!