7-2 sdut-字符之比较大小
知识点:
ASCII码和字符的转化
转为字符chr(a)
转为ASCII码ord(c))
代码:
num=[eval(x) for x in input().split()]
num.sort()
for i in num[:-1]:
print(chr(i),end="<")
print(chr(num[-1]) )
ASCII码和字符的转化
转为字符chr(a)
转为ASCII码ord(c))
num=[eval(x) for x in input().split()]
num.sort()
for i in num[:-1]:
print(chr(i),end="<")
print(chr(num[-1]) )