简体   繁体   English

从google工作表中执行python脚本

[英]Execute python script from within google sheets

从谷歌工作表运行python脚本最简单的方法是什么,或者当google工作表打开时执行python脚本?

I'm assuming you have some python asset that you would like to use to modify data on Google Sheets. 我假设你有一些python资产,你想用它来修改Google表格上的数据。 If that's the case, then I think your best option is to use Google APIs to access Google Sheets from python. 如果是这种情况,那么我认为您最好的选择是使用Google API从python访问Google表格。 You can use any of the following two tutorials by Twilio to achieve that. 您可以使用Twilio的以下两个教程中的任何一个来实现这一目标。

If you want to add the python asset into Google sheets (Ex. as a custom function), then it will be much easier to rewrite it in JS. 如果你想将python资产添加到Google表格中(例如作为自定义函数),那么在JS中重写它会容易得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM