本文整理汇总了Python中dirigible.sheet.worksheet.Worksheet.set_cell_formula方法的典型用法代码示例。如果您正苦于以下问题:Python Worksheet.set_cell_formula方法的具体用法?Python Worksheet.set_cell_formula怎么用?Python Worksheet.set_cell_formula使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dirigible.sheet.worksheet.Worksheet
的用法示例。
在下文中一共展示了Worksheet.set_cell_formula方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_set_cell_formula_with_empty_string_should_clear_internal_contents_if_they_exist
# 需要导入模块: from dirigible.sheet.worksheet import Worksheet [as 别名]
# 或者: from dirigible.sheet.worksheet.Worksheet import set_cell_formula [as 别名]
def test_set_cell_formula_with_empty_string_should_clear_internal_contents_if_they_exist(self):
ws = Worksheet()
ws[1, 2].formula = "=1"
ws.set_cell_formula(1, 2, "")
self.assertFalse((1, 2) in ws)
示例2: test_set_cell_formula_with_empty_string_should_do_nothing_if_no_preexisting_internal_contents
# 需要导入模块: from dirigible.sheet.worksheet import Worksheet [as 别名]
# 或者: from dirigible.sheet.worksheet.Worksheet import set_cell_formula [as 别名]
def test_set_cell_formula_with_empty_string_should_do_nothing_if_no_preexisting_internal_contents(self):
ws = Worksheet()
ws.set_cell_formula(1, 2, "")
self.assertFalse((1, 2) in ws)
示例3: test_set_cell_formula_with_value_should_update_internal_contents
# 需要导入模块: from dirigible.sheet.worksheet import Worksheet [as 别名]
# 或者: from dirigible.sheet.worksheet.Worksheet import set_cell_formula [as 别名]
def test_set_cell_formula_with_value_should_update_internal_contents(self):
ws = Worksheet()
ws.set_cell_formula(1, 2, "3")
self.assertEquals(ws[1, 2].formula, '3')