Commit b333ea6e by BellCodeEditor

save project

parent dfdeeabb
Showing with 12 additions and 0 deletions
...@@ -4,3 +4,14 @@ import(random) ...@@ -4,3 +4,14 @@ import(random)
list=["石頭","剪刀","布"] list=["石頭","剪刀","布"]
a=randpm.choice(list) a=randpm.choice(list)
print("計算機出:"+a) print("計算機出:"+a)
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