This commit is contained in:
krahets
2023-03-23 18:56:56 +08:00
parent 2715ce703a
commit 0dfdcf0bab
25 changed files with 118 additions and 115 deletions

View File

@@ -63,7 +63,7 @@ comments: true
=== "Python"
```python title="insertion_sort.py"
def insertion_sort(nums: List[int]) -> None:
def insertion_sort(nums: list[int]) -> None:
""" 插入排序 """
# 外循环base = nums[1], nums[2], ..., nums[n-1]
for i in range(1, len(nums)):