php開發中MySQL時間型別篩選語句的解決方案
阿新 • • 發佈:2021-01-07
技術標籤:python
player = int(input("請輸入您的選擇_石頭-1、剪刀-2、布-3:")) computer = random.randint(1, 3) print("玩家出的是 %d, 電腦出的是 %d" % (player, computer)) if player == computer: print("平局!") elif ((player == 1 and computer == 3) or (player == 2 and computer == 1) or (player == 3 and computer == 2)): print("computer win! ") else: print("player win! ")