freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-wit.../scientific-computing-with-p.../polygon-area-calculator.md

1.4 KiB
Raw Blame History

id title challengeType forumTopicId dashedName
5e444147903586ffb414c94f 多边形面积计算器 10 462363 polygon-area-calculator

--description--

在这个项目中,你将使用面向对象的编程来创建 Rectangle矩形 类和 Square正方形 类。 Square 类应该是 Rectangle 的子类,并继承方法和属性。

你可以在 Replit 上查看整个项目的具体描述和初始代码

到达此链接后fork 这个项目。 当你根据 “README.md” 中的说明完成了项目,请在下方提交你的项目链接。

Python 课程的交互式教学部分仍在开发当中。 目前freeCodeCamp.org YouTube 频道上的一些视频将会教授你这个项目需要的所有技能。

--hints--

它应该创建一个 Rectangle 类和 Square 类并通过所有测试。


--solutions--

/**
  Backend challenges don't need solutions,
  because they would need to be tested against a full working project.
  Please check our contributing guidelines to learn more.
*/