本文整理汇总了Python中Figuras.Figuras.esfigura方法的典型用法代码示例。如果您正苦于以下问题:Python Figuras.esfigura方法的具体用法?Python Figuras.esfigura怎么用?Python Figuras.esfigura使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Figuras.Figuras
的用法示例。
在下文中一共展示了Figuras.esfigura方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_octagono_7_10
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_octagono_7_10(self):
fig = Figuras()
self.assertEquals("Octagono", fig.esfigura("Octagono"))
self.assertEquals(280, fig.area_octagono(7,10))
示例2: test_octagono_9_15
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_octagono_9_15(self):
fig = Figuras()
self.assertEquals("Octagono", fig.esfigura("Octagono"))
self.assertEquals(540, fig.area_octagono(9,15))
示例3: test_triangulo_28_33
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_triangulo_28_33(self):
fig = Figuras()
self.assertEquals("Triangulo", fig.esfigura("Triangulo"))
self.assertEquals(462, fig.area_triangulo(28,33))
示例4: test_octagono_4_6
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_octagono_4_6(self):
fig = Figuras()
self.assertEquals("Octagono", fig.esfigura("Octagono"))
self.assertEquals(96, fig.area_octagono(4,6))
示例5: test_triangulo_24_11
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_triangulo_24_11(self):
fig = Figuras()
self.assertEquals("Triangulo", fig.esfigura("Triangulo"))
self.assertEquals(132, fig.area_triangulo(24,11))
示例6: test_cuadrado_5
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_cuadrado_5(self):
fig = Figuras()
self.assertEquals("Cuadrado", fig.esfigura("Cuadrado"))
self.assertEquals(25, fig.area_cuadrado(5))
示例7: test_rectangulo_15_6
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_rectangulo_15_6(self):
fig = Figuras()
self.assertEquals("Rectangulo", fig.esfigura("Rectangulo"))
self.assertEquals(90, fig.area_rectangulo(15,6))
示例8: test_triangulo_3_4
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_triangulo_3_4(self):
fig = Figuras()
self.assertEquals("Triangulo", fig.esfigura("Triangulo"))
self.assertEquals(6, fig.area_triangulo(3,4))
示例9: test_rectangulo_4_3
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_rectangulo_4_3(self):
fig = Figuras()
self.assertEquals("Rectangulo", fig.esfigura("Rectangulo"))
self.assertEquals(12, fig.area_rectangulo(4,3))
示例10: test_rectangulo_8_2_10
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_rectangulo_8_2_10(self):
fig = Figuras()
self.assertEquals("Rectangulo", fig.esfigura("Rectangulo"))
self.assertEquals(82, fig.area_rectangulo(8.2,10))
示例11: test_circulo_8_9
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_circulo_8_9(self):
fig = Figuras()
self.assertEquals("Circulo", fig.esfigura("Circulo"))
self.assertEquals(248.85, fig.area_circulo(8.9))
示例12: test_circulo_10
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_circulo_10(self):
fig = Figuras()
self.assertEquals("Circulo", fig.esfigura("Circulo"))
self.assertEquals(314.16, fig.area_circulo(10))
示例13: test_circulo_4
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_circulo_4(self):
fig = Figuras()
self.assertEquals("Circulo", fig.esfigura("Circulo"))
self.assertEquals(50.27, fig.area_circulo(4))
示例14: test_cuadrado_18
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_cuadrado_18(self):
fig = Figuras()
self.assertEquals("Cuadrado", fig.esfigura("Cuadrado"))
self.assertEquals(324, fig.area_cuadrado(18))
示例15: test_cuadrado_76
# 需要导入模块: from Figuras import Figuras [as 别名]
# 或者: from Figuras.Figuras import esfigura [as 别名]
def test_cuadrado_76(self):
fig = Figuras()
self.assertEquals("Cuadrado", fig.esfigura("Cuadrado"))
self.assertEquals(5776, fig.area_cuadrado(76))