city_list=['chengdu','shanghai','tianJing','kunming']
print(city_list)
#对字母顺序进行排序打印列表
print(sorted(city_list))
print(city_list)
print(sorted(reversed(city_list)))
print(city_list)
city_list.reverse()
print(city_list)
city_list.reverse()
print(city_list)
city_list.sort()
print(city_list)
city_list.sort(reverse=True)
print(city_list)