python3 蹲一个有简单方法的dalao,嘤
题2
http://www.nowcoder.com/questionTerminal/fcb27e3f51bc46bb8951ac8162d7d89a
a = [int(x) for x in input().split(',')]
str_a = [10*(len(str(x))-1) for x in a]
value = list(map(lambda x,y:0.1x/y,a,str_a))
str_a = [len(str(x)) for x in a]
sum_min2max = max(str_a)+min(str_a)
str_a_1 = [sum_min2max-x for x in str_a]
final = list(map(lambda x,y:x+y,str_a_1,value))
for index, value in enumerate(a):
if value==0:
final[index]=0
zipped = zip(a,final)
sort_zipped = sorted(zipped,key=lambda x:(x[1]),reverse = True)
result = zip(*sort_zipped)
x1, x2 = [list(x) for x in result]
x_str = [str(x) for x in x1]
s=''.join(x_str)
s=int(s)
print(s)