📜  python 字符串生成器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:13.664000             🧑  作者: Mango

代码示例3
from random import randint

def create_random_chars(nbr_of_chars):
    return "".join(chr(randint(33,126)) for i in range(nbr_of_chars))


print(create_random_chars(10))
# I1CU>E5q;$