第26057题 判断题

编写 Python 程序模拟石头剪刀布游戏,数字 0 代表石头,数字 1 代表剪刀,数字 2 代表布,石头胜剪刀,剪刀胜布,布胜石头,模拟玩家出拳可以使用下面的程序代码。

import random
a = random.randint(0, 2)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析