Commit 30de91f9 by BellCodeEditor

save project

parent 25abb509
Showing with 16 additions and 2 deletions
import random
player=input("请出拳:石头/剪刀/布")# 玩家出拳 player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player) list=("石头","剪刀","布")
\ No newline at end of file print("玩家出拳:"+player)
cpu=random.choice(list)
print("计算机出拳:"+cpu)
if(player==cpu)
print("平局")
eilf(player=="石头" and cpu=="剪刀")
input(恭喜,你赢了)
eilf(player=="布" and cpu=="石头")
input(恭喜,你赢了)
eilf(player=="剪刀" and cpu=="布")
input(恭喜,你赢了)
else:
input(很遗憾,你输了)
\ 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