2017.5.3 sort test

travel = ['Britain','Germany','America','Swiss','Japan']

print(travel)

print(sorted(travel))

print(travel)

print(sorted(travel,reverse=True))

print(travel)

travel.reverse()

print(travel)

travel.reverse()

print(travel)

travel.sort()

print(travel)

travel.sort(reverse = True)

print(travel)

print(travel[-1])

你可能感兴趣的:(2017.5.3 sort test)