Commit 1053fe73 by BellCodeEditor

save project

parent 79a839e5
Showing with 20 additions and 4 deletions
#j=1
for i in range(1,10):
for j in range(1,i+1):
print(j,'*',i,'=',(i*j),end=' ')
print()
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!"
# 请对message进行遍历,取出所有元素
for i in message:
print(i)
\ No newline at end of file
...@@ -3,14 +3,17 @@ ...@@ -3,14 +3,17 @@
# 每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果 # 每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
# """ # """
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor('black')
pen = turtle.Pen() pen = turtle.Pen()
pen.speed(100000000*10000) pen.speed(10000000*100000)
colors=['red','green','gold','blue']
# 请创造师在下面接着创作 # 请创造师在下面接着创作
# q=1 # q=1
for i in range(0,500,1): for i in range(0,600,1):
pen.color(colors[i%4])
pen.fd(i) pen.fd(i)
pen.left(91) pen.left(37)
# q=q+1 # q=q+1
pen.hideturtle() pen.hideturtle()
......
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