---
# System prepended metadata

title: 程式筆記

---

# 程式筆記
[TOC]
## Race Condition
https://khiav223577.github.io/blog/2019/02/07/%E4%B8%8D%E4%BD%BF%E7%94%A8-lock-%E5%8F%88%E8%A6%81%E9%81%BF%E5%85%8D-race-condition%EF%BC%8C%E5%8F%AF%E8%83%BD%E5%97%8E%EF%BC%9F/

## 正确理解Python中的 @staticmethod@classmethod方法
https://zhuanlan.zhihu.com/p/28010894

## NanoID
https://banyudu.com/posts/NanoId-introduction.a9ac94
https://github.com/puyuan/py-nanoid
```
from nanoid import generate
generate('1234567890abcdef', 10)
```