Commit 5b6b0e97 by BellCodeEditor

save project

parent 4383aff0
Showing with 14 additions and 1 deletions
# 玩家出拳
player = input("請出拳(石頭|剪刀|布):")
player = input("請出拳(A|B|C):")
print("玩家出拳:"+player)
# jk出拳
import random
list=["a","b","c"]
computer=random.choice(list)
print("計算機:"+computer)
#
if player==computer:
print("平局")
elif (player==("A") and computer=="b")or(player==("B") and computer=="c")or(player==("C") and computer=="a"):
print("你贏了")
else:
print("你輸了")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment