Python 库#
参考 Python 3 标准库实例教程 以及 Python 中文技术论坛。
typing
对类型提示的支持contextvars
sched
事件调度器- IPython
- 定义自定义魔法命令
- 嵌入 IPython
- IPython 内建魔法命令
%alias
%alias_magic
%autoawait
%autocall
%automagic
%bookmark
%cd
%env
%gui
%history
%killbgscripts
%load
%load_ext
%logoff
%logon
%logstart
%logstate
%logstop
%lsmagic
%macro
%magic
%matplotlib
%notebook
%page
%pdb
%pdef
%pdoc
%pfile
%pinfo
%pinfo2
%pip
%popd
%pprint
%precision
%prun
%psearch
%psource
%pushd
%pwd
%pycat
%pylab
%quickref
%recall
%rehashx
%reload_ext
%rerun
%reset
%reset_selective
%run
%save
%sc
%set_env
%sx
%system
%tb
%time
%timeit
%%bash
%%capture
PIL
- NumPy
- 什么是 NumPy?
- NumPy:初学者的绝对基础
- 数组创建
- 对
ndarrays
的索引 - Importing data with
genfromtxt()
- 广播
- 拷贝与视图
- Working with Arrays of Strings And Bytes
- Structured arrays
- Introduction
- Structured datatypes
- Indexing and assignment to structured arrays
- Record arrays
- Recarray helper functions
append_fields()
apply_along_fields()
assign_fields_by_name()
drop_fields()
find_duplicates()
flatten_descr()
get_fieldstructure()
get_names()
get_names_flat()
join_by()
merge_arrays()
rec_append_fields()
rec_drop_fields()
rec_join()
recursive_fill_fields()
rename_fields()
repack_fields()
require_fields()
stack_arrays()
structured_to_unstructured()
unstructured_to_structured()
- Recarray helper functions
- Writing custom array containers
- 与 NumPy 的互操作性
- Subclassing ndarray
- Introduction
- View casting
- Creating new from template
- Relationship of view casting and new-from-template
- Implications for subclassing
- Simple example - adding an extra attribute to ndarray
- Slightly more realistic example - attribute added to existing array
__array_ufunc__
for ufuncs__array_wrap__
for ufuncs and other functions- Extra gotchas - custom
__del__
methods and ndarray.base - Subclassing and downstream compatibility
- NumPy 教程
- Determining Moore’s Law with real data in NumPy
- Saving and sharing your NumPy arrays
- What you’ll learn
- What you’ll do
- What you’ll need
- Create your arrays
- Save your arrays with NumPy’s
savez
- Remove the saved arrays and load them back with NumPy’s
load
- Reassign the NpzFile arrays to
x
andy
- Success
- Another option: saving to human-readable csv
- Rearrange the data into a single 2D array
- Save the data to csv file using
savetxt
- Our arrays as a csv file
- Success, but remember your types
- Wrapping up
- Analyzing the impact of the lockdown on air quality in Delhi, India
- Deep learning on MNIST
- Deep reinforcement learning with Pong from pixels
- Masked Arrays
- Plotting Fractals
- Determining Static Equilibrium in NumPy
- Linear algebra on n-dimensional arrays
- X-ray image processing
matplotlib
matplotlib
教程matplotlib.widgets
- Matplotlib 事件处理
- 在 GUI 中嵌入 Matplotlib
- 图像、轮廓和场
- Affine transform of an image
- Wind Barbs
- Barcode
- Interactive Adjustment of Colormap Range
- Colormap normalizations
- Colormap normalizations SymLogNorm
- Contour Corner Mask
- Contour Demo
- Contour Image
- Contour Label Demo
- Contourf demo
- Contourf Hatching
- Contourf and log color scale
- Contouring the solution space of optimizations
- BboxImage Demo
- Figimage 演示
- Creating annotated heatmaps
- Image antialiasing
- Clipping images with patches
- 绘制图像的多种方法
- 插值图像
- Image Masked
- Image nonuniform
- Blend transparency with color in 2D images
- Modifying the coordinate formatter
- Interpolations for imshow
- Contour plot of irregularly spaced data
- Layer Images
- Visualize matrices with matshow
- Multiple images with one colorbar
- pcolor images
- pcolormesh grids and shading
- pcolormesh
- Streamplot
- QuadMesh Demo
- Advanced quiver and quiverkey functions
- Quiver Simple Demo
- Shading example
- Spectrogram
- Spy Demos
- Tricontour Demo
- Tricontour Smooth Delaunay
- Tricontour Smooth User
- Trigradient Demo
- Triinterp Demo
- Triplot Demo
- Watermark image
- 形状和集合
- Arrow guide
- Matplotlib 图形元素参考
- Line, Poly and RegularPoly Collection with autoscaling
- Compound path
- Dolphins
- Mmh Donuts!!!
- Ellipse with orientation arrow demo
- Ellipse Collection
- Ellipse Demo
- Ellipse Rotated
- Drawing fancy boxes
- Hatch demo
- Hatch style reference
- Plotting multiple lines with a LineCollection
- 圆形、扇形和多边形
- PathPatch object
- Bezier Curve
- Scatter plot
- 文本、标签和注解
matplotlib
设计原理- Quick start guide
- a figure with one Axes on the left, and two on the right:
- 图表和后端
- Customizing Matplotlib with style sheets and rcParams
imshow()
之origin
和extent
- TVM
- PyTorch
- TensorFlow
- xbook
- Tkinter
- Tkinter 基础
tkinter
事件tkinter
绘图tkinter
运行多线程任务tkinter
其他例子- 窗口的
wm_overrideredirect
方法 - 自定义 ToolTip
- 使用
tix.Balloon
实现 ToolTip - 自定义绘图工具
- 1 可绑定“动作”的按钮
- 2 带图片的按钮
- 3 可跟踪 ttk.Entry 的“变量”
- 4 验证 ttk.Entry
- 5 Listbox(列表框)
- 6 鼠标触发的事件
- 7 键盘触发的事件
- 8 自定义标题栏图标
- 9 自定义列表框
- 10 不同颜色的标签
- 11 创建个人信息记录表单
- 12 可切换背景和前景的颜色选择器
- 13 变换字体
- 14 设置鼠标光标
- 15 tkinter.Text
- tkinter 基础示例
- 示例3
- 自定义的文本编辑器
- Tips
- tkinter 之窗口设计
- tkinter 使用鼠标选择图形的颜色以及形状
- tkinter 创建可以输入复杂算式的计算器
- 绘制动画
- tkinter 嵌入到 Matplotlib
- 窗口的
- Qt
- ModernGL
- Gymnasium
gym-multigrid
- DRLHP
faulthandler
— 转储 Python 回溯信息- 文本处理
ctypes
— Python 的外部函数库- CFFI
pybind11
- C++11 与 Python 之间的无缝操作cppyy
- Ping3
- 对象注解
- Ray