本文整理汇总了Python中contour.contour.Contour.prime_form_sampaio方法的典型用法代码示例。如果您正苦于以下问题:Python Contour.prime_form_sampaio方法的具体用法?Python Contour.prime_form_sampaio怎么用?Python Contour.prime_form_sampaio使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类contour.contour.Contour
的用法示例。
在下文中一共展示了Contour.prime_form_sampaio方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_prime_form_sampaio_5
# 需要导入模块: from contour.contour import Contour [as 别名]
# 或者: from contour.contour.Contour import prime_form_sampaio [as 别名]
def test_prime_form_sampaio_5():
cseg = Contour([0, 1, 2, 1, 2])
assert cseg.prime_form_sampaio() == [[0, 1, 3, 2, 4], [0, 1, 4, 2, 3],
[0, 2, 3, 1, 4], [0, 2, 4, 1, 3]]
示例2: test_prime_form_sampaio_2
# 需要导入模块: from contour.contour import Contour [as 别名]
# 或者: from contour.contour.Contour import prime_form_sampaio [as 别名]
def test_prime_form_sampaio_2():
cseg = Contour([5, 7, 9, 1])
assert cseg.prime_form_sampaio() == [0, 3, 2, 1]
示例3: test_prime_form_sampaio_3
# 需要导入模块: from contour.contour import Contour [as 别名]
# 或者: from contour.contour.Contour import prime_form_sampaio [as 别名]
def test_prime_form_sampaio_3():
cseg = Contour([0, 2, 1, 3, 4])
assert cseg.prime_form_sampaio() == [0, 1, 3, 2, 4]
示例4: test_prime_form_sampaio_1
# 需要导入模块: from contour.contour import Contour [as 别名]
# 或者: from contour.contour.Contour import prime_form_sampaio [as 别名]
def test_prime_form_sampaio_1():
cseg = Contour([1, 4, 9, 2])
assert cseg.prime_form_sampaio() == [0, 2, 3, 1]