Commit 6dbe91b6 by BellCodeEditor

save project

parent 44046ded
Showing with 7 additions and 10 deletions
import turtle import random
pen=turtle.Pen() player=input("请出拳(剪刀/石头/布)")
pen.fillcolor("white") print("玩家出"+player)
pen.begin_fill() list=["剪刀","石头","布"]
for i in range(5): computer=random.choice(list)
pen.forward(200) print("计算机出"+computer)
pen.left(144)
pen.end_fill()
turtle.done()
\ 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