Python基础(5)输入三个数并排序

#排序
'''
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

转载于:https://www.cnblogs.com/jietingting/p/7076852.html

你可能感兴趣的:(Python基础(5)输入三个数并排序)