Commit d21023a8 by BellCodeEditor

save project

parent 220fe62b
Showing with 14 additions and 0 deletions
# 玩家出拳
mlnb=input("let'go(剪刀/石头/布):")
print("player"+mlnb)
import random
list=["剪刀","布","石头"]
xhnb=random.choice(list)
print("computer"+xhnb)
if mlnb==xhnb:
print("平局")
elif (mlnb=="石头" and xhnb=="剪刀") or (mlnb=="剪刀" and xhnb=="布") or (mlnb=="布" and xhnb=="石头"):
print("player is winner")
else:
print("winner is computer")
\ 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