我怎样才能绕过 Excel 的 URL 限制?

How can I get around Excel's URL Limitation?

我正在使用出色的 xlsxwriter 与 Python 一起构建 spreadsheets。我已经意识到 the issue 在开始收到警告和功能被限制之前,您只能将 40k 左右的 URL 写入 sheet。

有没有一种方法可以将 url 写成字符串,使 Excel 应用程序在打开时不会将 url 解释为字符串(因此允许我 添加无限 urls)?我知道这些 URL 将无法点击,但在这种情况下对我来说总比没有好。

Excel 的限制是每个工作表大约 65k 个 url。如果超过该值,XlsxWriter 会发出警告。

Is there a way to write the urls as strings in such a way that the Excel application will not interpret the url as a string on open (and therefore allow me to add unlimited urls)

XlsxWriter 有一个 constructor option 来关闭字符串到 url 的转换:

workbook = xlsxwriter.Workbook(filename, {'strings_to_urls': False})