CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
jackfrued

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/番外篇/code/test.py
Views: 729
1
def merge(items1, items2):
2
items3 = []
3
index1, index2 = 0, 0
4
while index1 < len(items) and index2 < len(items2):
5
if items[index1] < items2[index2]:
6
items3.append(items1[index1])
7
index1 += 1
8
else:
9
items3.append(items2[index2])
10
index2 += 1
11
12