使用 win32 python 将 excel 中的一列数据格式化为百分比

Format a column of data in excel into percentage using win32 python

尝试在 excel

中使用 win32 python 将一列数据转换为百分比
xlSheet.Range("C3:C7").Style = "Percentage"

这不起作用。还有其他办法吗?

你几乎成功了。

正确的格式名称是 "Percent"

所以尝试:

xlSheet.Range("C3:C7").Style = "Percent"