
""" 爆炸图.py """ import turtle import random cs = ['yellow','red','purple','blue'] turtle.bgcolor('black') turtle.delay(0) turtle.speed(0) turtle.pensize(4) index = 0 for index in range(3,-1,-1): c = cs[index] turtle.color(c) turtle.pensize(index+2) for _ in range(150): d = (index+1) * random.randint(50,120) f = random.randint(1,360) turtle.seth(f) turtle.fd(d) turtle.goto(0,0) turtle.done()
本站所有作品,教程等皆为原创,版权所有。只供个人及单位内部研究使用,对外展示或传播必需经本站同意,且注明来自本站。培训机构等用本站资源培训学生,需经本站授权。一旦付款,表示同意本站知识付费原则:数字商品,不支持退款。亦可直接向微信号scratch8付款购买。入住QQ群:225792826 和爱好者共同交流,并且能下载免费提供的Python资源(需提供真实姓名才可入群)
李兴球的博客_Python创意编程技术前沿_pygame » 爆炸图
李兴球的博客_Python创意编程技术前沿_pygame » 爆炸图