Commit 73b2a204 by BellCodeEditor

save project

parent bc46c72c
Showing with 9 additions and 8 deletions
......@@ -5,11 +5,12 @@ print("玩家出拳:"+prjkbh)
xddc=["石头","剪刀","布"]
computer=random.choice(xddc)
print("计算机出拳:"+computer)
if prjkbh == computer:
print("平局!")
elif (prjkbh =="石头" and computer=="剪刀")or(prjkbh =="剪刀" and computer =="布")or(prjkbh =="布" and computer =="石头"):
print("玩家赢!")
if prjkbh in(xddc)
if prjkbh == computer:
print("平局!")
elif (prjkbh =="石头" and computer=="剪刀")or(prjkbh =="剪刀" and computer =="布")or(prjkbh =="布" and computer =="石头"):
print("玩家赢!")
else:
print("计算机赢!")
else:
print("计算机赢!")
\ No newline at end of file
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