Commit f2f5116e by BellCodeEditor

save project

parent 7abb4542
Showing with 20 additions and 15 deletions
s=input("玩家出拳(石头,剪刀,布)")
print("玩家出拳"+s)
import random
h=("石头","剪刀","布")
v=random.choice(h)
print("电脑出"+v)
if s==h:
if s==v :
print("平局")
elif (s=="石头" and v=="剪刀") or (s=="剪刀" and v=="布") or (s=="布" and v=="石头"):
print("你赢了")
else:
print("你shu了")
\ No newline at end of file
from turtle import*
write('你好\n憨憨',font=('Times',20,'normal'))
i=100
bgcolor('red')
bgcolor('pink')
up()
goto(150,-90)
down()
begin_fill()
pensize(10)
pencolor('red')
left(45)
forward(i)
circle(i/2,180)
right(90)
circle(i/2,180)
end_fill()
forward(i)
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