Commit ecacacfc by BellCodeEditor

save project

parent 220fe62b
Showing with 17 additions and 0 deletions
# 玩家出拳
s=input("玩家出拳:")
print("玩家出拳:"+s)
import random
list=["石头","剪刀","布"]
awa=random.choice(list)
print(awa)
if s==awa:
print("平局")
elif s=="石头"and awa=="剪刀":
print("玩家胜")
elif s=="剪刀"and awa=="布":
print("玩家胜")
elif s=="布"and awa=="石头":
print("玩家胜")
else:
print("电脑胜")
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