我自己写的:
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:\n'))
l.append(x)
l.
sort()
print l
转载于:https://www.cnblogs.com/fanren224/p/8457282.html
转载请注明原文地址: https://mac.8miu.com/read-11870.html