Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
pythonxlrd:如何获取工作表&x27;什么是标签颜色?_Python_Python 3.x_Xlrd - Fatal编程技术网

pythonxlrd:如何获取工作表&x27;什么是标签颜色?

pythonxlrd:如何获取工作表&x27;什么是标签颜色?,python,python-3.x,xlrd,Python,Python 3.x,Xlrd,我的xls文件包含与所附图像中选项卡颜色不同的工作表 我想打印工作表名称及其选项卡颜色 import xlrd file_name = "/Users/prince/Downloads/xlsx1.xls" book = xlrd.open_workbook(file_name, on_demand=True) for sheet in book.sheets(): print (sheet.name) print (sheet.tabColor) 是否有类

我的
xls
文件包含与所附图像中选项卡颜色不同的工作表

我想打印工作表名称及其选项卡颜色

  import xlrd

  file_name = "/Users/prince/Downloads/xlsx1.xls"
  book = xlrd.open_workbook(file_name, on_demand=True)
  for sheet in book.sheets():
    print (sheet.name)
    print (sheet.tabColor)
是否有类似sheet.tabColor的API