📅  最后修改于: 2022-03-11 14:45:44.901000             🧑  作者: Mango
import random
#String
string = "abcdefghijklmnopqrstuvwxyz"
array = []
for c in string:
array += [c]
print(array[random.randint(0, len(array)-1)])
# Faster and more efficient
random.choice(string)