生成随机汉语""" head = random.randint(0xb0,0xf7) body = random.randint(0xa1,0xf9) # 在head区号为55的那一块最后5个汉字是乱码,为了方便缩减下范围 val = f'{head:x}{body:x}' str_ = bytes.fromhex(val).decode('gb2312') return str_ name = random_first_name() + random_last_name()
这个库
博客:https://home.cnblogs.com/u/Python1234/