有没有办法通过xlwings垂直写入单元格?
is there a way to write in cells vertically via xlwings?
我想像这样垂直组织(拆分)ed 结果
this
不是这个
import xlwings as xw
wb = xw.Book()
ws = wb.sheets.active
result = "1,2,3,4,5,6,7"
ws.range(1,1).value = result.split(",")
To write a list in column orientation to Excel, use transpose
:
sht.range('A1').options(transpose=True).value = [1,2,3,4]
我想像这样垂直组织(拆分)ed 结果 this
不是这个
import xlwings as xw
wb = xw.Book()
ws = wb.sheets.active
result = "1,2,3,4,5,6,7"
ws.range(1,1).value = result.split(",")
To write a list in column orientation to Excel, use
transpose
:sht.range('A1').options(transpose=True).value = [1,2,3,4]