Skip to main content
Python Tutorial
Show table of contents
Table of contents
Introduction
環境設置與執行
1
Python Environmental Setting
2
執行Python的code
3
註解與indention
4
print
5
Variables
Python Basic Data Types
6
Python Data Types
7
int & float 整理與實戰
8
string整理與實戰
Python Collections
9
collections overview
10
list整理與實戰
11
tuple整理與實戰
12
dictionary整理與實戰
13
set應用實戰
條件判斷
14
None
15
boolean整理與實戰
16
Conditional Operators
17
If statement
Loops
18
for loop
19
while loop
Functions
20
function101
21
Exception Handling
22
flexible arguments
23
recursion
24
Function就是另一種type的object
25
Nested Function
26
Variable Scope
27
closure
28
decorator
29
functional programming
Object Oriented Programming
30
OOP Fundamentals
31
Class-level vs Instance-level
32
Attribute Protection
33
isinstance, equality, 與 string representation
34
Encapsulation, Inheritacne, and Polymorphism
NumPy
35
numpy basics
View book source
9
collections overview
在Python中,有四種collection data types (i.e. arrays)
list: ordered, changeable, allow duplicate members
tuple: ordered, unchangeable, allow duplicate members
set: unordered, changeable, no duplicated members
dictionary: unordered, changeable, no duplicated members
8
string整理與實戰
10
list整理與實戰
On this page
9
collections overview
View source
Edit this page