python基础学习-判断if语句、 循环语句while

判断语句=分支语句 逻辑运算 and or not(取反) 随机数: 石头剪刀布游戏 import random player = int(input('请输入您要出的拳:石头(1)剪刀(2)布(3):')) computer = random.randint(1,3) print('玩家出的是%d,电脑出的是%d'%(player,computer)) if ((player == 1 and
相关文章
相关标签/搜索