Commit 620ae134 by BellCodeEditor

save project

parent 6495cee2
Showing with 8 additions and 2 deletions
...@@ -3,4 +3,10 @@ print("玩家出拳:"+player) ...@@ -3,4 +3,10 @@ print("玩家出拳:"+player)
import random import random
list1 = ["剪刀","石头","布"] list1 = ["剪刀","石头","布"]
cmp = random.choice(list1) cmp = random.choice(list1)
print("电脑出拳:擦哈哈哈"+cmp) print("电脑出拳:"+cmp)
\ No newline at end of file if cmp == player:
print("平局")
elif player=="剪刀" and cmp=="布" or player=="石头" and cmp=="剪刀" or player=="布" and cmp=="石头":
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