Skip to content

Commit cf380ed

Browse files
committed
Add new article for python.
1 parent 6f13c9e commit cf380ed

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

_drafts/python-tricks.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Python 特性
2+
3+
## 断言
4+
5+
```python
6+
def apply_discount(product, discount):
7+
price = int(product['price'] * (1.0 - discount))
8+
assert 0 <= price <= product['price']
9+
return price
10+
```

_posts/2019-11-28-问题集锦.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags:
77
- 面试
88
---
99

10-
# 问题汇总
10+
## 设计原理
1111

1212
1. uuid 是否有重复?
1313
- 自动 id 生成策略

0 commit comments

Comments
 (0)