Skip to content

StreamWriter with excelize.Cell do not take effect #21

@sangachy

Description

@sangachy

Description

stream_writer, 参考 Go 语言的写法,指定通过 excelize.Cell 定义值时好像没生效,不是很清楚是,代码问题,还是当前不支持,还是 Bug。

Steps to reproduce the issue

测试代码如下:

import excelize

f = excelize.new_file()
try:
    stream_writer = f.new_stream_writer("Sheet1")
    stream_writer.set_row("A2", [excelize.Cell(value="Hello, World!"), "Hello, World!"])
    stream_writer.flush()
    f.save_as("Book1.xlsx")
except RuntimeError as err:
    print(err)
finally:
    err = f.close()
    if err:
        print(err)

Describe the results you received

最终只有第二个 Hello, World! 出现在表格Book1.xlsx 里。

Describe the results you expected

预期表格出现两个 Hello, World!

Python version

Python 3.13.2

Excelize version or commit ID

0.0.4

Environment

macOS Sequoia

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions