Commit b2601392 by BellCodeEditor

auto save

parent faf8dd05
Showing with 31 additions and 0 deletions
juzi="欢迎来到玛酷机器人,我们一起学习Python吧!" #编号0-23 共24个字符
# new_juzi=list(juzi)
# print(new_juzi)
abc=len(juzi)
i=0
while i < abc:
chucun=juzi[i]
print(chucun)
# i = i+1
i += 1
\ No newline at end of file
import turtle
import random
pen=turtle.Pen()
list=["red","pink","yellow","blue","green"]
pen.pencolor(random.choice(list))
pen.fillcolor(random.choice(list))
list2=[3,4,5,6,7,8]
zx=random.choice(list2)
pen.begin_fill()
for i in range(zx):
pen.forward(150)
pen.right(360/zx)
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