Commit 93714740 by BellCodeEditor

save project

parent 50c0d220
Showing with 12 additions and 16 deletions
import random
bianliang=input("玩家请出拳:(剪刀/石头/布)")
print("玩家出拳:"+bianliang)
list=["剪刀","石头","布"]
jsj=random.choice(list)
print("计算机出拳:"+jsj)
if bianliang in list:
if bianliang==jsj:
print("平局yeeee")
elif (bianliang=="剪刀" and jsj=="布") or (bianliang=="布" and jsj=="石头") or (bianliang=="石头" and jsj=="剪刀"):
print("你赢了!耶斯莫拉!")
else:
print("你输了")
else:
print("输入错误")
import turtle
pen=turtle.Pen()
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
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