xlwings:change 来自 Python 的字符颜色

xlwings:change the color of character from Python

我在 Windows.I 上使用 xlwings 想将字符输入的颜色更改为 cell.But 电源线不是 understood.Please 给 assistance.Thank你.

以下应该有效:

import xlwings as xw
wb = xw.books.active
wb.sheets[0]['A1'].font.color = (0, 255, 0)