🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
``` from turtle import * setup(600,800,None,None) pensize(10) speed(10) t = 0 for r in range(0,256,80): for g in range(0,256,80): for b in range(0,256,80): pencolor(r/255,g/255,b/255) t += 10 penup() goto(-250,350-t) pendown() forward(500) done ``` ``` for r in range(0,256,80): print(r) ``` ``` for r in range(0,256,80): #print(r) for g in range(0,256,80): #print(r,g) for b in range(0,256,80): print(r,g,b) ``` ``` from turtle import * setup(600,600,None,None) pensize(10) speed(10) t = 0 #pencolor(0/255,0/255,0/255) #pencolor(220/255,20/255,60/255) colormode(255) pencolor(220,20,60) penup() goto(-250,350-10) pendown() forward(500) done ```