Commit 426d7962 by BellCodeEditor

save project

parent fbd34c97
Showing with 9 additions and 6 deletions
......@@ -4,14 +4,16 @@ import(random)
list=["石頭","剪刀","布"]
a=randpm.choice(list)
print("計算機出:"+a)
if player==computer:
if player in list
if player==computer:
print("評價")
elif player=="石頭"and computer=="剪刀"
elif player=="石頭"and computer=="剪刀"
print("你贏了")
elif player=="剪刀"and computer=="布"
elif player=="剪刀"and computer=="布"
print("你贏了")
elif player=="布"and computer=="石頭"
elif player=="布"and computer=="石頭"
print("你贏了")
elif:
elif:
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