Commit b6efa40a by BellCodeEditor

auto save

parent 721458b6
Showing with 11 additions and 9 deletions
import random import turtle
player=input("请出拳(石头/剪刀/布):") pen = turtle.Pen()
list = ["石头","剪刀","布"] color1=input("请输入颜色:")
computer=random.choice(list) pen.fillcolor(color1)
print("玩家出拳:"player) pen.begin_fill()
print("计算机出拳:"+computer) for i in range(5):
if player==compter: pen.forward(200)
print("") pen.right(144)
\ No newline at end of file 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