- 博客(1)
- 收藏
- 关注
原创 2021-05-15 Python基础案例
Python基础案例 剪刀石头布 import random com = int(random.randint(1, 3)) di = int(input("你出的是(石头:1 剪刀:2 布:3):")) print("电脑出的是(石头:1 剪刀:2 布:3):%d" % com) if (di == 1 and com == 2) or (di == 2 and com == 3) or (di == 3 and com == 1): print("恭喜你,你赢了") elif d
2021-05-15 17:15:25 171
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人