python随机选取字符串

python随机选取字符串可以这样:

import random
def randomly_selects_strings(wordlist):
    return wordlist[random.randint(0,len(wordlist))]

猜你喜欢

转载自blog.csdn.net/weixin_42943220/article/details/81591979