Book Description
Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours (2nd Edition) (Sams Teach Yourself — Hours)
In just 24 sessions of one hour or less, Sams Teach Yourself Python Programming for Raspberry Pi in 24 Hours teaches you Python programming on Raspberry Pi, so you can start creating awesome projects for home automation, home theater, gaming, and more. Using this book’s straightforward, step-by-step approach, you’ll move from the absolute basics all the way through network and web connections, multimedia, and even connecting with electronic circuits for sensing and robotics. Every lesson and case study application builds on what you’ve already learned, giving you a rock-solid foundation for real-world success!
Step-by-step instructions carefully walk you through the most common Raspberry Pi Python programming tasks.
Quizzes at the end of each chapter help you test your knowledge.
By the Way notes present interesting information related to the discussion.
Did You Know? tips offer advice or show you easier ways to perform tasks.
Watch Out! cautions alert you to possible problems and give you advice on how to avoid them.
- Get your Raspberry Pi and choose the right low-cost peripherals
- Set up Raspian Linux and the Python programming environment
- Learn Python basics, including arithmetic and structured commands
- Master Python 3 lists, tuples, dictionaries, sets, strings, files, and modules
- Reuse the same Python code in multiple locations with functions
- Manipulate string data efficiently with regular expressions
- Practice simple object-oriented programming techniques
- Use exception handling to make your code more reliable
- Program modern graphical user interfaces with Raspberry Pi and OpenGL
- Create Raspberry Pi games with the PyGame library
- Learn network, web, and database techniques you can also use in business software
- Write Python scripts that send email
- Interact with other devices through Raspberry Pi’s GPIO interface
- Walk through example Raspberry Pi projects that inspire you to do even more
Table of Contents
Part I: Python Programming on the Raspberry Pi
Hour 1. Setting Up the Raspberry Pi
Hour 2. Understanding the Raspbian Linux Distribution
Hour 3. Setting Up a Programming Environment
Part II: Python Fundamentals
Hour 4. Understanding Python Basics
Hour 5. Using Arithmetic in Your Programs
Hour 6. Controlling Your Program
Hour 7. Learning About Loops
Part III: Advanced Python
Hour 8. Using Lists and Tuples
Hour 9. Dictionaries and Sets
Hour 10. Working with Strings
Hour 11. Using Files
Hour 12. Creating Functions
Hour 13. Working with Modules
Hour 14. Exploring the World of Object-Oriented Programming
Hour 15. Employing Inheritance
Hour 16. Regular Expressions
Hour 17. Exception Handling
Part IV: Graphical Programming
Hour 18. GUI Programming
Hour 19. Game Programming
Part V: Business Programming
Hour 20. Using the Network
Hour 21. Using Databases in Your Programming
Hour 22. Web Programming
Part VI: Raspberry Pi Python Projects
Hour 23. Creating Basic Pi/Python Projects
Hour 24. Working with Advanced Pi/Python Projects
Appendix A. Loading the Raspbian Operating System onto an SD Card
Appendix B. Raspberry Pi Models Synopsis
中文:
书名:Sams Teach Yourself in 24 Hours: Python Programming for Raspberry Pi, 2nd Edition
24小时内自学(第二版)(萨姆斯自学小时)
在不超过一小时的24个课程中,Sams自学24小时Raspberry Pi的Python编程教您在Raspberry Pi上进行Python编程,这样您就可以开始为家庭自动化、家庭影院、游戏等创建令人惊叹的项目。使用本书直截了当、循序渐进的方法,你将从绝对的基础一直到网络和网络连接、多媒体,甚至连接用于传感和机器人的电子电路。每个课程和案例研究应用程序都建立在您已经学到的基础上,为您在现实世界中的成功奠定了坚实的基础!
循序渐进的说明仔细地指导您完成最常见的Raspberry PI Python编程任务。
每章末尾的测验帮助你测试你的知识。
By the Way notes present interesting information related to the discussion.
Did You Know? tips offer advice or show you easier ways to perform tasks.
小心!警告提醒您注意可能出现的问题,并给出如何避免这些问题的建议。
- 获得您的Raspberry PI并选择合适的低成本外围设备
- Set up Raspian Linux and the Python programming environment
- Learn Python basics, including arithmetic and structured commands
- Master Python 3 lists, tuples, dictionaries, sets, strings, files, and modules
- 在具有函数的多个位置重复使用相同的Python代码
- 使用正则表达式高效地操作字符串数据
- Practice simple object-oriented programming techniques
- Use exception handling to make your code more reliable
- Program modern graphical user interfaces with Raspberry Pi and OpenGL
- Create Raspberry Pi games with the PyGame library
- 学习您也可以在商业软件中使用的网络、Web和数据库技术
- Write Python scripts that send email
- Interact with other devices through Raspberry Pi’s GPIO interface
- Walk through example Raspberry Pi projects that inspire you to do even more
Table of Contents
Part I: Python Programming on the Raspberry Pi
Hour 1. Setting Up the Raspberry Pi
Hour 2. Understanding the Raspbian Linux Distribution
Hour 3. Setting Up a Programming Environment
第二部分:Python基础知识
Hour 4. Understanding Python Basics
Hour 5. Using Arithmetic in Your Programs
Hour 6. Controlling Your Program
Hour 7. Learning About Loops
Part III: Advanced Python
第8小时:使用列表和元组
第九小时:词典和成套词典
10小时:使用字符串
Hour 11. Using Files
Hour 12. Creating Functions
第13小时:使用模块
Hour 14. Exploring the World of Object-Oriented Programming
Hour 15. Employing Inheritance
Hour 16. Regular Expressions
Hour 17. Exception Handling
Part IV: Graphical Programming
Hour 18. GUI Programming
Hour 19. Game Programming
Part V: Business Programming
Hour 20. Using the Network
Hour 21. Using Databases in Your Programming
Hour 22. Web Programming
Part VI: Raspberry Pi Python Projects
Hour 23. Creating Basic Pi/Python Projects
Hour 24. Working with Advanced Pi/Python Projects
附录A.将Raspbian操作系统加载到SD卡
Appendix B. Raspberry Pi Models Synopsis
评论前必须登录!
注册