Commit 11f1362f by BellCodeEditor

save project

parent 25102f6b
Showing with 11 additions and 14 deletions
import random
player=input("请出钱")
cn = ["剪刀","石头","布"]
cn1=random.choice(cn)
print(cn1)
if player in cn:
if player=="剪刀" and cn1=="布" or player == "布" and cn1=="石头" or player == "石头" and cn1 == "剪刀":
print("胜利")
elif player == cn1:
print("平局")
else:
print("输入错误!")
import turtle
pen=turtle.Pen()
pen.shape("turtle")
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(100)
pen.right(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