Commit adbe8be3 by BellCodeEditor

save project

parent faf8dd05
Showing with 63 additions and 0 deletions
for i in range(20,81,2):
print(i)
\ No newline at end of file
a="3"
print(type(a))
\ No newline at end of file
"""
使用turtle模块画图
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
#import turtle
#pen = turtle.Pen()
#pen.hideturtle()
# turtle.done()
# # 请创造师在下面接着创作
# distance=1
# for i in range(300):
# pen.forward(distance)
# distance+=1
# pen.right(121)
# # 隐藏画笔,保存画布
import turtle
p=turtle.Pen()
colors=["red","yellow","green","pink"]
p.speed(20)
s=turtle.Screen()
s.bgcolor("black")
for i in range(1,1000):
p.pencolor(colors[i%4])
p.forward(i)
p.left(91)
p.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
p=turtle.Pen()
# for i in range(20,81,2):
# p.forward(i)
# p.left(60)
bc=20
while bc<81:
p.forward(bc)
p.left(60)
bc=bc+2
turtle.done()
a="3"
print(type(a))
b=4
print(type(b))
c=3.0
print(type(c))
d=input("请输入一个数字:")
print(d)
print(type(d))
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