Commit e930fff0 by BellCodeEditor

auto save

parent 13a12078
Showing with 28 additions and 0 deletions
import random
player = input("请出拳:剪刀、石头、布")
list=["石头","剪刀","布"]
computer = random.choice(list)
print(computer)
if ((player == "石头" and computer == "剪刀") or
(player == "剪刀" and comput == "布") or
(player == "布" and computer == "石头")):
print("你赢了")
else:
print("很遗憾!")
import turtle
pen = turtle.Pen() # 创建一只画笔
pen.shape("turtle")
pen.color("red")
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
pen.hideturtle()
turtle.done() # 保存画布
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