List
[chr(i) for i in range(97,123)]
String
''.join([chr(i) for i in range(97,123)])
String两句话
import string
string.ascii_lowercase
dict两句话
dict.fromkeys(string.ascii_lowercase,0)
[chr(i) for i in range(97,123)]
''.join([chr(i) for i in range(97,123)])
import string
string.ascii_lowercase
dict.fromkeys(string.ascii_lowercase,0)
转载于:https://www.cnblogs.com/bk770466199/p/10559216.html