排序算法
排序算法
Python Introduction - OOP
把一组数据结构和处理它们的方法组成对象(object),把相同行为的对象归纳为类(class),通过类的封装(encapsulation)隐藏内部细节,通过继承(inheritance)实现类的特化(specialization)和泛化(generalization),通过多态(polymorphism)实现基于对象类型的动态分派。
Python Introduction - Exceptions
In the following article, let us introduce a few more elements to for python, that is exceptions.
Python Introduction - Time & Schedule
时间,像一个晃晃悠悠、恍恍惚惚的幽灵。
Python Introduction - Matrix
12345678910matrix = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]][num for row in matrix for num in row]# [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]## transpose the matrix rows and columns[[row[i] for row ...
Python 并发编程
线程间通信(共享数据)非常简单因为可以共享同一个进程的内存
进程间通信(共享数据)比较麻烦因为操作系统会保护分配给进程的内存
要实现多进程间的通信通常可以用系统管道、套接字、三方服务来实现
multiprocessing.Queue
守护线程 - daemon thread
守护进程 - firewalld / httpd / mysqld
在系统停机的时候不保留的进程 - 不会因为进程还没有执行 ...
正则表达式 - Regular Expressions
知道[正则表达式]可能意味着用 3 步解决一个问题,而不是用 3000 步。如果你是一个技术怪侠,别忘了你用几次击键就能解决的问题,其他人需要数天的烦琐工作才能解决,而且他们容易犯错。 -
Python Introduction - Matplotlib
123456789101112131415161718192021222324252627282930313233343536from math import log2, factorialfrom matplotlib import pyplotimport numpydef main(): """主函数(程序入口)""" num = 6 styles = ['r-.', 'g ...
Python Introduction - Files
In the following article, let us introduce a few more elements to for python, that is files.
Python 装饰器|Decorators
python装饰器的简单理解和运用。
Python Modules
Python一些常用的模块
Python Packages
Packaging in Python
Python 加密 - hashlib & base64 & hmac
Python 加密 - hashlib & base64 & hmac
Python Turtle Notes
Python Turtle 图形库的简单使用笔记
回想它是如何使你快乐,你便有了走出困境的勇气。
P5.js
P5.js
Tampermonkey
Tampermonkey
Python Introduction Pt.1 - Data Types & Functions
Welcome to the Python Garden! This article introduces Python basic data types usage for further learning.
Ubuntu 18.04 Desktop TO DO LIST
Ubuntu 18.04 简要环境搭建以及美化。
















