练习:
输出一个a-z的随机集合,然后去重,按照a-z的顺序进行排列
方法一:
print(sorted(set([chr(i) for i in range(97,123)])))
方法二:
import numpy as npa1=np.arange(97,123)b1=[chr(i) for i in a1]print(b1)