瀏覽代碼

Modified sorting.py and it works

luislopez66 2 年之前
父節點
當前提交
28c0210811
共有 2 個檔案被更改,包括 15 行新增14 行删除
  1. 12
    12
      .vscode/PythonImportHelper-v2-Completion.json
  2. 3
    2
      sorting.py

+ 12
- 12
.vscode/PythonImportHelper-v2-Completion.json 查看文件

@@ -1,13 +1,5 @@
1 1
 [
2 2
     {
3
-        "label": "randint",
4
-        "importPath": "random",
5
-        "description": "random",
6
-        "isExtraImport": true,
7
-        "detail": "random",
8
-        "documentation": {}
9
-    },
10
-    {
11 3
         "label": "time",
12 4
         "kind": 6,
13 5
         "isExtraImport": true,
@@ -17,11 +9,11 @@
17 9
         "documentation": {}
18 10
     },
19 11
     {
20
-        "label": "merge",
21
-        "importPath": "merge",
22
-        "description": "merge",
12
+        "label": "randint",
13
+        "importPath": "random",
14
+        "description": "random",
23 15
         "isExtraImport": true,
24
-        "detail": "merge",
16
+        "detail": "random",
25 17
         "documentation": {}
26 18
     },
27 19
     {
@@ -34,6 +26,14 @@
34 26
         "documentation": {}
35 27
     },
36 28
     {
29
+        "label": "merge",
30
+        "importPath": "merge",
31
+        "description": "merge",
32
+        "isExtraImport": true,
33
+        "detail": "merge",
34
+        "documentation": {}
35
+    },
36
+    {
37 37
         "label": "heapify",
38 38
         "kind": 2,
39 39
         "importPath": "heap",

+ 3
- 2
sorting.py 查看文件

@@ -7,10 +7,11 @@ La variable veces define las veces que se va a hacer el ordenamiento
7 7
 La variable veces define las veces que se va a hacer el ordenamiento
8 8
 Al final se imprimen los promedios de cada algortimo
9 9
 """
10
-from random import randint
11 10
 import time
12
-from merge import merge
11
+from random import randint
12
+
13 13
 import heap
14
+from merge import merge
14 15
 
15 16
 # Python program for implementation of MergeSort
16 17