是否可以从Libre Office Calc调用Python函数?


11

考虑以下简单的Python函数:

def mysum(a, b):
   return a + b

我想放入=mysum(5, 7)Calc电子表格的单元格,因此只需返回数字12。

这可能吗?


2
forum.openoffice.org/en/forum/viewtopic.php?f=20&t=43686表示可能,但并不容易-您必须在libreoffice basic中编写一个小的包装函数,以调用python脚本。
慢性病

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.