Commit 5ab25329 by BellCodeEditor

auto save

parent 578e41ee
Showing with 48 additions and 9 deletions
pltly=input('请出拳:')
print("玩家出拳"+pltly)
import random
list["石头","布","剪刀"]
computer=random.choice(list)
print("电脑出拳:"+computer)
if plter=="石头" and computer=="剪刀":
print("玩家赢!")
if plter=="剪刀" and computer=="布":
print("玩家赢!")
if plter=="布" and computer=="石头"
print("玩家赢!")
if plter=="石头" and computer=="布"
print("电脑赢!")
\ No newline at end of file
total = [] import turtle
while True: pen=turtle.Pen()
unit= input("请输入:") size=input("提示","你想要多大的魔法阵呀?")
if unit== 'q': pen.circle(size)
break pen.circle(size,360,3)
else: pen.circle(size,60)
total.append(unit) pen.circle(size,360,3)
print(total) turtle.done()
\ No newline at end of file \ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
pen.fillcolor("red")
pen.penup()
pen.goto(80,0)
pen.write("祝老师工作顺利,\n年年有余!",font=("Times",20,"normal"))
pen.penup()
pen.goto(-5,-23)
pen.begin_fill()
pen.pencolor("red")
pen.pendown()
pen.right(45)
pen.circle(50,180)
for i in range(7):
pen.right(135)
pen.circle(50,180)
pen.end_fill()
pen.hideturtle()
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