#排序
‘‘‘
x=int(raw_input(‘shuru:1‘))
y=int(raw_input(‘shuru2:‘))
z=int(raw_input(‘shuru3:‘))
list1=[x,y,z]
print list(reversed((sorted(list1))))
print (sorted(list1))
‘‘‘
l=[]
for i in range(3):
x=raw_input(‘shuruba:‘)
l.append(x)
l.sort()
print l
时间: 2024-11-06 10:15:10