a = [12, 8, 9, 18, 2, 19, 28, 6]
for i in range (len(a)-1):
if a[i] < a[i+1]:
a[i], a[i+1] = a[i+1], a[i]
p = len(a)-1
for i in range(len(a)-2, 0, -1) :
if a[i] > a[p] :
P =i
tmp = a[p]
a[p] = a[0]
a[0] = tmp
print (a)
执行该程序段后,输出的结果是( )