我自己写的:
x = int(input('x:'))
y = int(input('y:'))
z = int(input('z:'))
L = [x,y,z]
print(sorted(L))
官方答案:
l = []
for i in range(3):
x = int(raw_input('integer:
'))
l.append(x)
l.sort()
print l
我自己写的:
x = int(input('x:'))
y = int(input('y:'))
z = int(input('z:'))
L = [x,y,z]
print(sorted(L))
官方答案:
l = []
for i in range(3):
x = int(raw_input('integer:
'))
l.append(x)
l.sort()
print l