"""
逐渐显图姑娘.py
本程序会慢慢的把一位姑娘的图形显示出来,然后有箭头指示相关文字。
但是,这并不是我女朋友哦,图片是从网上下载的。本程序有配音。
"""
from sprites import *
PlaySound('faded.wav',SND_ASYNC)
此处代码省略.....
p = Sprite(shape='pointer',visible=False,pos=(100,100))
p.color('white')
p.setheading(225)
for x in range(6):
p.show()
p.write("my girl friend",font=('黑体',14,'normal'))
p.wait(0.6)
p.hide()
p.clear()
p.wait(0.6)
p.clear()
p.goto(-100,100)
p.setheading(-45)
for x in range(6):
p.show()
p.write("今天是你的生日",align='right',font=('黑体',14,'normal'))
p.wait(0.6)
p.hide()
p.clear()
p.wait(0.6)
p.clear()
p.goto(0,150)
p.setheading(-90)
for x in range(6):
p.show()
p.write("祝你生日快乐",align='center',font=('黑体',14,'normal'))
p.wait(0.6)
p.hide()
p.clear()
p.wait(0.6)
p.clear()
w.home()
w.shape('th.png')
w.rotatemode(2)
w.show()
w.clear()
w.setheading(90)
for x in range(8):
girl = w.stamp()
while True:
w.clearstamps(1)
w.fd(4)
w.stamp()
w.bounce_on_edge()
time.sleep(0.1)
下载完整源代码与素材,请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)

