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开始就是关于做界面的,挺有意思的。
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开始就是关于做界面的,挺有意思的。
相关文章推荐
- head first series 学习记录(Python)
- head first python 读书记录
- 2009-03-07读书记录:《head first java》(第二版)——1至4章
- java基础二(阅读Head First Java记录)
- java基础一(阅读Head First Java记录)
- java基础九[网络与线程](阅读Head First Java记录)
- 记录-Head first java-第7-8章
- Head First Servlets&Jsp 读书摘记4——【会话状态】
- Head First Servlets&Jsp 读书摘记8——【自定义标签】
- Head First Servlets&Jsp 读书摘记9——【部署】
- Head First Servlets&Jsp 读书摘记12——【模式和Struts】
- java基础六 [异常处理](阅读Head First Java记录)
- Head First Servlets&Jsp 读书摘记2——【作为Servlet】
- HeadFirst SQL 读书摘要
- HEAD FIRST SQL 的读书心得
- 记录-Head first java-第五章
- Head First Servlets&Jsp 读书摘记1——【Web应用体系结构 & 迷你MVC】
- HeadFirst Python及 python 简单学习记录
- head first design patterns中的几个模式记录
- Head First Servlets&Jsp 读书摘记11——【过滤器的威力】