您的位置:首页 > 编程语言 > Python开发

head first series 读书记录

2015-02-04 10:57 288 查看
1.p219的这段代码没有运行成功

import pygame.mixer

sounds = pygame.mixer

sounds.init()

def wait_finish(channel):

while channel.get_busy():

pass

s = sounds.Sound("heartbeat.wav")

wait_finish(s.play())

s2 = sounds.Sound("buzz.wav")

wait_finish(s2.play())

s3 = sounds.Sound("ohno.wav")

wait_finish(s3.play())

s4 = sounds.Sound("carhorn.wav")

wait_finish(s4.play())

 

2.从chap 7开始就是关于做界面的,挺有意思的。

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python