--- id: 5e44414f903586ffb414c950 title: 概率计算器 challengeType: 10 forumTopicId: 462364 dashedName: probability-calculator --- # --description-- 写一个程序来确定从帽子中随机拿取特定球的大致概率。 你可以在 [Replit](https://replit.com/github/freeCodeCamp/boilerplate-probability-calculator) 上查看整个项目的具体描述和初始代码。 访问此链接后,fork 这个项目。 当你根据 “README.md” 中的说明完成了项目,请在下方提交你的项目链接。 我们仍在开发 Python 课程的交互式教学部分。 目前,freeCodeCamp.org YouTube 频道上的一些视频将会教授你这个项目需要的所有技能。 # --hints-- 它应该能正确地计算概率并通过所有测试。 ```js ``` # --solutions-- ```js /** 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. */ ```