题解 | #图片整理#
图片整理
https://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
#输入字符串
str1=input()
#各个字符转换为ASCII码
ASCII=[]
for x in str1:
ASCII.append(ord(x))
#排序后输出
ASCII=sorted(ASCII)
for x in ASCII:
print(chr(x),end='')
图片整理
https://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
#输入字符串
str1=input()
#各个字符转换为ASCII码
ASCII=[]
for x in str1:
ASCII.append(ord(x))
#排序后输出
ASCII=sorted(ASCII)
for x in ASCII:
print(chr(x),end='')
相关推荐