Commit 62aa78ed by BellCodeEditor

save project

parent 1f038949
Showing with 16 additions and 17 deletions
kk=input("剪刀石头布")
print("玩家出"+kk)
import random
listl=['剪刀''石头''布']
k=random.choice(listl)
print("计算机出"+k)
if kk==k:
print("平局")
elif kk=="石头"and k=="剪刀"
print("你赢了")
elif kk=="布"and k=="石头"
print("你赢了")
elif kk=="剪刀"and k=="布"
print("你赢了")
else:
print("计算机赢")
\ No newline at end of file
import turtle
pen=turtle.Pen()
turtle.Screen()
screen=turtle.Screen()
screen.bgcolor("blue")
pen.write("nihao")
pen.pensize(5)
pen.pencolor("red")
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