Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用python的包rpy2来获取FlexTable和合并单元格,代码是:
rpy2
FlexTable
r['spanFlexTable'](tab1,i=1,from=2,to=3)
但是from是python中的一个关键词,有人可以帮我解决这个问题吗?
from
在这篇文章中,后缀下划线(from_)的解决方案可能有效: Is it possible to escape a reserved word in Python?