Add files via upload
This commit is contained in:
parent
d76cb59182
commit
c2eb8e633c
@ -12,9 +12,7 @@ def sort_func(sort=[],repeat=False):
|
|||||||
while (t):
|
while (t):
|
||||||
for i in range(0,le-1):
|
for i in range(0,le-1):
|
||||||
if sort[i] > sort[i + 1]:
|
if sort[i] > sort[i + 1]:
|
||||||
tmp1 = sort[i];
|
sort[i], sort[i + 1] = sort[i + 1], sort[i];
|
||||||
sort[i] = sort[i + 1];
|
|
||||||
sort[i + 1] = tmp1;
|
|
||||||
j = 0;
|
j = 0;
|
||||||
elif sort[i] == sort[i + 1] and repeat==False:
|
elif sort[i] == sort[i + 1] and repeat==False:
|
||||||
del sort[i]
|
del sort[i]
|
||||||
|
Loading…
Reference in New Issue
Block a user