Commit fac89c7c by BellCodeEditor

auto save

parent 698d953d
c
\ No newline at end of file
print("sb")
\ No newline at end of file
i=1
for j in range(1,10):
print(i,"*",j,"=",(j*i),end=(" "))
\ No newline at end of file
"""
使用turtle模块画图
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
pen = turtle.Pen()
colors=["red","orange","yellow","green"]
pen.speed(100000000000000000000000000)
# 请创造师在下面接着创作
for i in range(1000):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.right(91)
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
\ No newline at end of file
for i in range(1,10):
for j in range(1,i=1):
print(i,"*",j,"=",(j*i),end=(" "))
print()
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
pen.speed(1000000000000000000)
pen.pencolor("blue")
pen.penup()
pen.goto(0,260)
pen.pendown()
pen.left(180)
pen.fillcolor("white")
pen.begin_fill()
pen.circle(100,360)
pen.end_fill()
pen.pensize(10)
pen.pencolor("black")
pen.goto(0,300)
pen.penup()
pen.circle(140,30)
pen.pendown()
pen.left(90)
pen.forward(40)
pen.penup()
pen.right(90)
pen.circle(100,300)
pen.right(90)
pen.pendown()
pen.forward(40)
pen.penup()
pen.goto(-30,190)
pen.pendown()
pen.left(45)
pen.pensize(10)
pen.fillcolor("black")
pen.begin_fill()
pen.circle(20,360)
pen.end_fill()
pen.setheading(90)
pen.forward(-1)
pen.fillcolor("white")
pen.begin_fill()
pen.circle(15,360)
pen.end_fill()
pen.penup()
pen.goto(60,190)
pen.pendown()
pen.fillcolor("black")
pen.begin_fill()
pen.circle(20,360)
pen.end_fill()
pen.setheading(90)
pen.forward(-1)
pen.fillcolor("white")
pen.begin_fill()
pen.circle(15,360)
pen.end_fill()
pen.pencolor("red")
pen.penup()
pen.goto(-40,100)
pen.pendown()
pen.pensize(7)
pen.setheading(-30)
pen.circle(75,60)
pen.penup()
pen.goto(-50,71)
pen.pendown()
pen.pencolor("white")
pen.fillcolor("white")
pen.begin_fill()
pen.goto(-50,45)
pen.goto(50,45)
pen.goto(50,71)
pen.end_fill()
pen.penup()
pen.goto(-390,-250)
pen.pendown()
pen.pencolor("blue")
pen.write("大家好!\n 我是韦嘉铄。我今年12周岁了!\n 生日是11月11日,双十一!\n 我最喜欢的事就是……(你猜,我不告诉你)\n 我最喜欢吃的是……(你还猜—_——)\n 最后,我的自我介绍到此结束!>_<",font=("宋体",30,"normal"))
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