Commit b333ea6e by BellCodeEditor

save project

parent dfdeeabb
Showing with 13 additions and 2 deletions
...@@ -3,4 +3,15 @@ print("玩家出"player) ...@@ -3,4 +3,15 @@ print("玩家出"player)
import(random) import(random)
list=["石頭","剪刀","布"] list=["石頭","剪刀","布"]
a=randpm.choice(list) a=randpm.choice(list)
print("計算機出:"+a) print("計算機出:"+a)
\ No newline at end of file
if player==computer:
print("評價")
elif player=="石頭"and computer=="剪刀"
print("你贏了")
elif player=="剪刀"and computer=="布"
print("你贏了")
elif player=="布"and computer=="石頭"
print("你贏了")
elif:
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