python 讀取表格
import pandas as pd
df = pd.read_excel("/Users/xueqiu/Downloads/發(fā)布.xlsx", engine="openpyxl", sheet_name="Sheet1")
one_cell = df.iat[0, 0]
print("輸出第一行第一列:" + one_cell)
}
此時由于沒有導(dǎo)入openpyxl 會有報錯:ModuleNotFoundError: No module named 'openpyxl'
導(dǎo)入方法:PyCharm-Preference-Python interpreter-點擊“+”-輸入openpyxl -Install Package