Commit f6b0c09f by BellCodeEditor

save project

parent 9f06da46
Showing with 10 additions and 14 deletions
import random import turtle
neme=input("石头剪刀布") pen = turtle.Pen()
list=["石头","剪刀","布"] pen.fillcolor("red")
compute=random.choice(list) pen.begin_fill()
print("你"+neme) for i in range(5):
print("它"+compute) pen.forward(200)
if compute==neme: pen.right(144)
print(平局) pen.end_fill()
elif (neme="石头"and compute="剪刀")or(neme="布"and compute="石头")or(neme="剪刀"and compute="布")or: pen.hidrturtle()
print(胜利) turtle.done()
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