Skip to content

Python

金山文档在线表格、多维表格支持 Python 脚本,文档网址 https://airsheet.wps.cn/pydocs/ ,兼容 AirScript API 。

在线表格,工具栏 –> 效率 –> PY 脚本,注明限免,慎重使用。

查看 Python 版本号,版本更新成问题。

import sys

print(sys.version)
3.11.4 (main, Jul 5 2023) [GCC 11.2.0]

区域 A1:A10 填入 1 到 10 。

for i in Range('A1:A10'):
    i.Value2 = i.Row
A
1
2
3
4
5
6
7
8
9
10

联系 math@baima.site