Commit a24abc16 by BellCodeEditor

save project

parent fe55abd5
Showing with 14 additions and 5 deletions
player=input("玩家出拳(石头\剪刀\布): ")
print("玩家出拳:"+player)
a=input("玩家出拳(石头\剪刀\布): ")
print("玩家出拳:"+a)
import random
list=["石头","剪刀","布","石头","剪刀","布","石头","剪刀","布"]
name=random.choice(list)
print("机器出"+name)
\ No newline at end of file
b=random.choice(list)
print("机器出"+b)
if a in list:
if a==b:
print("平局")
elif (a=="石头" and b=="剪刀") or (a=="剪刀" and b=="布") or (a=="布" and b=="石头"):
print("结果:"+"玩家胜利")
else:
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