MY Python
作者:m-jan
运行
清除
全屏运行
终端打印输出区
点赞(0)
收藏 (5)
浏览量(899)
改编作品
我也要学编程
留 言
©2020. LLC. All rights reserved.柳州引尖教育少儿编程
import turtle import random def randomcolor(): colorArr = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'] color = "" for i in range(6): color += colorArr[random.randint(0,15)] return "#"+color color_RGB = randomcolor() t = turtle.Turtle() count =1 i = 1 while i < 6: while count < 6: t.color(color_RGB) t.forward(200) t.right(144) count +=1 t.left(144) i += 1 count =1 color_RGB = randomcolor() t.left(90) print ("Welcome to YinJianCode!!!") print ("\nWelcome to My Python Code!!!") print ("\nI like Python Code!!!")