摘要:
'石头0', '剪刀1', '布2' '''玩家 计算机0 1 玩家获胜0 2 计算机获胜1 0 计算机获胜1 2 玩家获胜2 0 玩家获胜2 1 计算机获胜''' import random player = int(input("请输入整数['石头0', '剪刀1', '布2']:")) whi 阅读全文
posted @ 2024-07-27 12:16
limalove
阅读(18)
评论(0)
推荐(0)
摘要:
自己实现: a = int(input("第一个数:")) b = int(input("第二个数:")) c = int(input("第三个数:")) if a > b: if a >c: print('1最大数为:', a) else: print('2最大数为:', c) else: if 阅读全文
posted @ 2024-07-27 11:47
limalove
阅读(326)
评论(0)
推荐(0)
摘要:
是否可以构成三角形 a = float(input("第1条边长:")) b = float(input("第2条边长:")) c = float(input("第3条边长:")) #任意两边之和大于第三边,这种应该用and连接 if a + b > c and a + c > b and b + 阅读全文
posted @ 2024-07-27 09:02
limalove
阅读(193)
评论(0)
推荐(0)

浙公网安备 33010602011771号