Commit f24a8e0d by BellCodeEditor

auto save

parent 5ed0112c
Showing with 16 additions and 11 deletions
import turtle
pen=turtle.Pen()
color=input("你想要什么颜色的五角星")
pen.fillcolor(color)
pen.begin_fill()
for i in range(5):
pen.fd(200)
pen.right(144)
pen.end_fill()
turtle.down()
player=input("请输入石头/剪刀/布:")
print("玩家出"+player)
import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print(computer)
if player==computer:
print("平局")
elif player=="石头" and computer=="剪刀":
print("玩家赢")
elif player=="剪刀" and computer=="布":
print("玩家赢")
elif player=="布" and computer=="石头":
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