Commit f0c32daf by BellCodeEditor

auto save

parent d64a4b2d
Showing with 10 additions and 17 deletions
# 玩家出拳
plar=input("请出拳(石头/剪刀/布):")
print("我出:"+plar)
import random
list=["石头","剪刀","布"]
if plar in list:
computer=random.choice(list)
print("计算机出:"+computer)
if plar == computer:
print("平局")
elif plar=="布" and computer=="石头" or plar=="剪刀" and computer=="布" or plar=="石头" and computer=="剪刀":
print("你赢了")
else:
print("你输了")
else:
print("输入错误")
import turtle
pen=turtle.Pen()
pen.circle(100)
pen.goto(0,25)
pen.circle(25)
pen.goto(0,125)
pen.circle(25)
pen.goto(0,50)
pen.circle(50,-180)
pen.circle(-50,180)
......
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