Thư viện Trường Đại học Phú Xuân
Python for Everybody

Nguồn ngoài

Python for Everybody

Writing programs (or programming) is a very creative and rewarding activity. You can write programs for many reasons, ranging from making your living to solving a difficult data analysis problem to having fun to helping someone else solve a problem. This book assumes that everyone needs to know how to program, and that once you know how to program you will figure out what you want to do with your newfound skills.

Tác giả
Chuck Severance
Nhà xuất bản
University of Michigan
Nguồn
LibreTexts
Giấy phép
CC BY-NC-SA
Ngôn ngữ
EN
Danh mục
Công nghệ thông tin
Mục lục· 202 mục
  1. 01: Introduction
  2. 1.0E: 1.E: Introduction (Exercises)
  3. 1.0G: 1.G: Introduction (Glossary)
  4. 1.01: Why should you learn to write programs
  5. 1.02: Creativity and Motivation
  6. 1.03: Computer Hardware Architecture
  7. 1.04: Understanding Programming
  8. 1.05: Words and Sentences
  9. 1.06: Conversing with Python
  10. 1.07: Terminology - Interpreter and Compiler
  11. 1.08: Writing a Program
  12. 1.09: What is a program
  13. 1.10: The Building Blocks of Programs
  14. 1.11: What could possibly go wrong
  15. 1.12: The Learning Journey
  16. 02: Variables Expressions and Statements
  17. 2.0E: 2.E: Variables Expressions and Statements (Exercises)
  18. 2.0G: 2.G: Glossary
  19. 2.01: Values and Types
  20. 2.02: Variables
  21. 2.03: Variable names and Keywords
  22. 2.04: Statements
  23. 2.05: Operators and Operands
  24. 2.06: Expressions
  25. 2.07: Order of Operations
  26. 2.08: Modulus Operator
  27. 2.09: String Operations
  28. 2.10: Asking the user for input
  29. 2.11: Comments
  30. 2.12: Choosing Mnemonic Variable Names
  31. 2.13: Debugging
  32. 03: Conditional Execution
  33. 3.0E: 3.E: Conditional Execution (Exercises)
  34. 3.0G: 3.G: Conditional Execution (Glossary)
  35. 3.01: Boolean Expressions
  36. 3.02: Logical Operators
  37. 3.03: Conditional Execution
  38. 3.04: Alternative Execution
  39. 3.05: Chained Conditionals
  40. 3.06: Nested Conditionals
  41. 3.07: Catching exceptions Using Try and Except
  42. 3.08: Short-Circuit Evaluation of Logical Expressions
  43. 3.09: Debugging
  44. 04: Functions
  45. 4.0E: 4.E: Functions (Exercises)
  46. 4.0G: 4.G: Functions (Glossary)
  47. 4.01: Function Calls
  48. 4.02: Built-in Functions
  49. 4.03: Type Conversion Functions
  50. 4.04: Random Numbers
  51. 4.05: Math Functions
  52. 4.06: Adding New Functions
  53. 4.07: Definitions and Uses
  54. 4.08: Flow of Execution
  55. 4.09: Parameters and Arguments
  56. 4.10: Fruitful functions and void functions
  57. 4.11: Why functions
  58. 4.12: Debugging
  59. 05: Iterations
  60. 5.0E: 5.E: Iterations (Exercises)
  61. 5.0G: 5.G: Iterations (Glossary)
  62. 5.01: Updating Variables
  63. 5.02: The while Statement
  64. 5.03: Infinite Loops
  65. 5.04: Infinite loops and break
  66. 5.05: Finishing iterations with continue
  67. 5.06: Definite loops using for
  68. 5.07: Loop patterns
  69. 5.08: Counting and Summing Loops
  70. 5.09: Maximum and Minimum Loops
  71. 5.10: Debugging
  72. 06: Strings
  73. 6.0E: 6.E: Strings (Exercises)
  74. 6.0G: 6.G: Strings (Glossary)
  75. 6.01: A string is a sequence
  76. 6.02: Getting the length of a string using len
  77. 6.03: Traversal through a string with a loop
  78. 6.04: String Slices
  79. 6.05: Strings are immutable
  80. 6.06: Looping and Counting
  81. 6.07: The in operator
  82. 6.08: String Comparison
  83. 6.09: String Methods
  84. 6.10: Parsing strings
  85. 6.11: Format operator
  86. 6.12: Debugging
  87. 07: Files
  88. 7.0E: 7.E: Files (Exercises)
  89. 7.0G: 7.G: Files (Glossary)
  90. 7.01: Persistence
  91. 7.02: Opening Files
  92. 7.03: Text files and Lines
  93. 7.04: Reading Files
  94. 7.05: Searching through a File
  95. 7.06: Letting the user choose the file name
  96. 7.07: Using try except and open
  97. 7.08: Writing Files
  98. 7.09: Debugging
  99. 08: Lists
  100. 8.0E: 8.E: Lists (Exercises)
  101. 8.0G: 8.G: Lists (Glossary)
  102. 8.01: A list is a sequence
  103. 8.02: Lists are mutable
  104. 8.03: Traversing a List
  105. 8.04: List operations
  106. 8.05: List Slices
  107. 8.06: List Methods
  108. 8.07: Deleting Elements
  109. 8.08: Lists and Functions
  110. 8.09: Lists and Strings
  111. 8.10: Parsing lines
  112. 8.11: Objects and Values
  113. 8.12: Aliasing
  114. 8.13: List arguments
  115. 8.14: Debugging
  116. 09: Dictionaries
  117. 9.0E: 9.E: Dictionaries (Exercises)
  118. 9.0G: 9.G: Dictionaries (Glossary)
  119. 9.01: Dictionaries
  120. 9.02: Dictionary as a Set of Counters
  121. 9.03: Dictionaries and Files
  122. 9.04: Looping and Dictionaries
  123. 9.05: Advanced Text Parsing
  124. 9.06: Debugging
  125. 10: Tuples
  126. 10.0E: 10.E: Tuples (Exercises)
  127. 10.0G: 10.G: Tuples (Glossary)
  128. 10.01: Tuples are Immutable
  129. 10.02: Comparing Tuples
  130. 10.03: Tuple Assignment
  131. 10.04: Dictionaries and Tuples
  132. 10.05: Multiple assignment with dictionaries
  133. 10.06: The most common words
  134. 10.07: Using Tuples as Keys in Dictionaries
  135. 10.08: Sequences- strings lists and tuples - Oh My
  136. 10.09: Debugging
  137. 11: Regular Expressions
  138. 11.0E: 11.E: Regular Expressions (Exercises)
  139. 11.0G: 11.G: Regular Expressions (Glossary)
  140. 11.0S: 11.S: Regular Expressions (Summary)
  141. 11.01: Regular Expressions
  142. 11.02: Character matching in regular expressions
  143. 11.03: Extracting data using regular expressions
  144. 11.04: Combining searching and extracting
  145. 11.05: Escape Character
  146. 11.06: Bonus section for Unix Linux users
  147. 11.07: Debugging
  148. 12: Networked Programs
  149. 12.0E: 12.E: Networked Programs (Exercises)
  150. 12.0G: 12.G: Networked Programs (Glossary)
  151. 12.01: HyperText Transfer Protocol - HTTP
  152. 12.02: The World's Simplest Web Browser
  153. 12.03: Retrieving an image over HTTP
  154. 12.04: Retrieving web pages with urllib
  155. 12.05: Parsing HTML and scraping the web
  156. 12.06: Parsing HTML using regular expressions
  157. 12.07: Parsing HTML using BeautifulSoup
  158. 12.08: Reading binary files using urllib
  159. 13: Python and Web Services
  160. 13.0E: 13.E: Python and Web Services (Exercises)
  161. 13.0G: 13.G: Python and Web Services (Glossary)
  162. 13.01: eXtensible Markup Language - XML
  163. 13.02: Looping through Nodes
  164. 13.03: JavaScript Object Notation - JSON
  165. 13.04: Parsing JSON
  166. 13.05: Application Programming Interfaces
  167. 13.06: Google geocoding web service
  168. 13.07: Security and API usage
  169. 14: Object-Oriented Programming
  170. 14.0G: 14.G: Object-Oriented Programming (Glossary)
  171. 14.0S: 14.S: Object-Oriented Programming (Summary)
  172. 14.01: Managing Larger Programs
  173. 14.02: Getting Started
  174. 14.03: Using Objects
  175. 14.04: Starting with Programs
  176. 14.05: Subdividing a Problem - Encapsulation
  177. 14.06: Our First Python Object
  178. 14.07: Classes as Types
  179. 14.08: Many Instances
  180. 14.09: Object Lifecycle
  181. 14.10: Inheritance
  182. 15: Using Databases and SQL
  183. 15.0G: 15.G: Using Databases and SQL (Glossary)
  184. 15.0S: 15.S: Using Databases and SQL (Summary)
  185. 15.01: What is a database
  186. 15.02: Database Concepts
  187. 15.03: Database Browser for SQLite
  188. 15.04: Creating a database table
  189. 15.05: Structured Query Language summary
  190. 15.06: Spidering Twitter using a database
  191. 15.07: Basic data modeling
  192. 15.08: Programming with Multiple Tables
  193. 15.09: Constraints in Database Tables
  194. 15.10: Retrieve and or insert a record
  195. 15.11: Storing the friend relationship
  196. 15.12: Three Kinds of Keys
  197. 15.13: Using JOIN to retrieve data
  198. 15.14: Degugging
  199. 16: Visualizing data
  200. 16.01: Building a Google map from geocoded data
  201. 16.02: Visualizing Networks and Interconnections
  202. 16.03: Visualizing mail data