问题标签 [roulette-wheel-selection]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
186 浏览

python - Python中的轮盘赌选择

我试图在 python 中实现轮盘选择。我很困惑实现它。这是我的代码;我希望有一个人可以帮助我。

我的错误

这是我的回溯错误