diy1.py
423 Bytes
# 玩家出拳
player=input("请输入半径~")
print(player+",请等待...")
import random
list=["","",""]
computer=random.choice(list)
print(computer)
if player==computer:
print("平局")
elif (player=="石头" and computer=="剪刀") or (player=="布" and computer=="石头" )or( player=="剪刀" and computer=="布"):
print("恭喜你,你获胜了!")
else:
print("很遗憾,你输了!")