Python 程式設計:電腦科學導論
這是一本大學基礎層級的教科書,旨在以 Python 作為主要程式語言,教授電腦科學的基本原理。本書透過螺旋式覆蓋模型及圖形導向的方式,重點培養學生的問題解決能力、設計思維與程式設計技巧。
課程總覽
📚 Content Summary
This is an introductory college-level textbook designed to teach the fundamental principles of computer science using Python as the primary programming language. It focuses on problem-solving, design, and programming through a spiral coverage model and a graphics-oriented approach.
A gentle and comprehensive introduction to the art of computer science through the lens of Python.
Author: John M. Zelle
Acknowledgments: Guido van Rossum (Foreword), Jim Leisy, and academic colleagues from Wartburg College and various universities including Owen Astrachan, Cay Horstmann, and Nell Dale.
🎯 Learning Objectives
- Distinguish between hardware/software and algorithms/programs.
- Explain how a Python interpreter translates high-level code into executable instructions via byte code.
- Define and invoke simple Python functions using parameters and arguments.
- List and describe the six stages of the Software Development Process.
- Apply Python syntax rules to create valid identifiers and mathematical expressions with correct operator precedence.
- Differentiate between the "Box" and "Sticky Note" variable models and explain the process of evaluation and assignment.
- Distinguish between
intandfloatdata types and apply explicit type conversions. - Implement the accumulator pattern to solve mathematical problems like factorials.
- Utilize the Python
mathlibrary to solve algebraic equations, including the quadratic formula. - Define and apply core OO concepts: objects, methods, accessors, mutators, and aliasing.