astropy包有一个 LaTeX 表格阅读器。
from astropy.table import Table
tab = Table.read('file.tex')
Run Code Online (Sandbox Code Playgroud)
读取器函数应自动识别格式并读取文件中的第一个表。(如果您想要稍后的表格,请将相关部分剪切并粘贴到新文件中)。不过,读者有一些限制。最重要的是,每一行数据都必须在一行上(问题中到表的链接已死,所以我看不出这是否是一个问题)并且不能有像\multicolumnor 之类的命令\multirow。
检查 astropy 中 Latex 阅读的文档以获取更多选项:https://astropy.readthedocs.org/en/latest/api/astropy.io.ascii.Latex.html#astropy.io.ascii.Latex
| 归档时间: |
|
| 查看次数: |
2706 次 |
| 最近记录: |