尝试将int变量"row"
用作Excelread
行中的参数,以便进行迭代。我收到错误消息,因为python无法识别为int输入?
from automagica import *
Row = 2
current_run = ExcelReadCell(path="C:\\Users\\jmoloney\\Downloads\\Medicaid.xlsx", r=Row, c=1, sheet=None)
Row = Row+1
print(current_run)
输出:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ExcelReadCell() got an unexpected keyword argument 'r'
答案 0 :(得分:0)
我知道了,格式已关闭,必须使用
ExcelReadRowCol(path =“ C:\ Users \ jmoloney \ Downloads \ Medicaid.xlsx”,r =行,c = 1,表格=无)
vs ExcelReadCell(xxx