小编Lol*_*cew的帖子

尝试从多个选项中进行选择,然后添加正确的选项 - 非常困惑

if (dice1 == dice2) or (dice1 == dice3) or (dice2 == dice1) or (dice2 == dice3) 
or (dice3 == dice2) or (dice3 == dice1):
     
    score = # no clue what to put here
Run Code Online (Sandbox Code Playgroud)

我需要找到办法;如果这些选项中的任何一个是正确的,那么将选择正确的选项并将骰子变量加在一起,例如两个或多个骰子是否相等?是的,那么score = sum of two equal dice

真的很困惑,谁能提供帮助?

python select

1
推荐指数
1
解决办法
44
查看次数

标签 统计

python ×1

select ×1