- 博客(11)
- 收藏
- 关注
原创 【Python】猜拳游戏
import randomc = random.randint(1, 3)x = int(input("请出拳 石头(1)/剪刀(2)/布(3): "))print("玩家选择的拳头是 %d - 电脑出的拳是 %d " % (x, c))if ((x == 1 and c == 2) or (x == 2 and c == 3) or (x == 3 and c == 1)): print("电脑弱爆了!")elif c == x: prin.
2021-08-03 14:58:42
53
原创 用Python语言打印九九乘法表
i = 1while i <= 9: j = 1 while j <= i: print("%d * %d = %d" % (i, j, i * j), end="\t") j += 1 print("") i += 1
2021-03-19 11:34:19
162
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人