Utils.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:newsreap 作者: caronc 项目源码 文件源码
def random_str(count=16, seed=ascii_uppercase + digits + ascii_lowercase):
    """
    Generates a random string. This code is based on a great stackoverflow
    post here: http://stackoverflow.com/questions/2257441/\
                    random-string-generation-with-upper-case-\
                    letters-and-digits-in-python
    """
    return ''.join(choice(seed) for _ in range(count))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号