""" 神奇彩条动画.py """ from random import randint from coloradd import coloradd from turtle import Turtle,Screen from winsound import PlaySound,SND_LOOP,SND_ASYNC screen = Screen() screen.setup(360,600) screen.bgcolor('black') screen.tracer(0,0) screen.colormode(255) screen.screensize(100,100) screen.title('神奇彩条动画') PlaySound('领略大自然的美丽神奇.wav',SND_LOOP|SND_ASYNC) c = (255,255,0) tom = Turtle(shape='square') tom.penup() tom.speed(0) tom.color(c) tom.shearfactor(0.5) toms = [tom] for i in range(1,10): angle = i * 36 t = tom.clone() t.setheading(angle) toms.append(t) pass # 这里推荐省略了
需要完整的源代码和音乐素材,请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)
发表评论