Commit c2c45c5a by BellCodeEditor

save project

parent 6940f0e6
Showing with 13 additions and 0 deletions
...@@ -5,3 +5,15 @@ import random ...@@ -5,3 +5,15 @@ import random
list=["石头""剪刀""布"] list=["石头""剪刀""布"]
computre=random.choice(list) computre=random.choice(list)
print(computer) print(computer)
print("玩家出拳 :"+player)
print("计算机出拳 :"+computer)
if playe in lise:
if playe == computer
print("平局"
elif (playe =="石头" and computre=="剪刀")or
(playe =="剪刀" and computre=="布")or(playe =="布" and computre=="石头")
print("恭喜,你赢"
elif
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