python笔记
来源:互联网 发布:无网络小游戏 编辑:程序博客网 时间:2024/05/21 02:15
- python
- basic data types
- containers
- Function
- class
- Numpy
- arrays
- array indexing
- datatypes
- array math
- broadcasting
- scipy
- image oprations
- matlab files
- distance between points
- matplotlib
- subplots
- images
简单学了一下cs231n所需要的python
python
basic data types
basic types: integer,float,boolean,string
numbers:
no increasement or decrement operators
boolean:
use english words in boolean logic: and,or,not,!=[xor]
string:
upper,center,replace…
containers
list:
resizeable and can contain elements of different types
nevigative indices count from the end of the list
slicing:
access sublists
list comprehension(can also contain condition)
dictionaries:
store pairs
set:
unordered collection of distinct elements
cannot make assumptions about the order
tuples:
can used as keys in dictionaries
Function
def
class
calss
Numpy
core library for scientific computing in python.
arrays
numpy is a grid of values of same type
rank: number of dimension
index:ononegative integers
shape: a tuple of integers giving the size of array along each dimension
improt numpy as np
array indexing
can be sliced
datatypes
array math
*is elementwise multiplication
dot function
T transpose(.T)
broadcasting
use small array multiple times to perform some operation on the big array
scipy
image oprations
can read images from disk into numpy arrays…
matlab files
distance between points
matplotlib
plot
subplots
images
- Python笔记
- python笔记
- python笔记
- python笔记
- python笔记
- PYTHON笔记
- python笔记
- python笔记
- python笔记
- Python笔记
- Python笔记
- Python笔记
- PYTHON笔记
- Python笔记
- python笔记-------------
- python笔记
- Python笔记
- python 笔记
- 520. Detect Capital
- Linux常见目录
- 欢迎使用CSDN-markdown编辑器
- 数据结构 — 查找III
- js工具集
- python笔记
- 数据结构 — 查找IV
- 算法课第3周第2题——207. Course Schedule
- 数据结构—排序I
- 数据结构—排序II
- 数据结构—排序III
- PPM是什么单位
- 数据结构—排序IV
- JavaI/O 学习笔记之一:字符流操作