专题博客链接
[题解]浙大Python PTA课后习题博客记录(Python)
原题题目
代码实现(输出法1)
a,b,c = map(int,input().split())
temp = [a,b,c]
list.sort(temp)
print("%d->%d->%d" % (temp[0],temp[1],temp[2]))
代码实现(输出法2 以后多用法2)
a,b,c = map(int,input().split())
temp = [a,b,c]
list.sort(temp)
print("{0:d}->{1:d}->{2:d}".format(temp[0],temp[1],temp[2]))