导入随机输出中文

import random def Unicode():     val = random.randint(0x4e00,0x9fbf)     return chr(val) print(Unicode()+Unicode()+Unicode()) import random def GBK2312():     head = random.rand...
import random


def Unicode():
    val = random.randint(0x4e00,0x9fbf)
    return chr(val)
print(Unicode()+Unicode()+Unicode())
import random
def GBK2312():
    head = random.randint(0xb0,0xf7)
    body = random.randint(0xa1,0xfe)
    val = f'{head:x}{body:x}'
    str = bytes.fromhex(val).decode('gb2312')
    return str
print(GBK2312()+GBK2312()+GBK2312())


  • 发表于 2021-03-12 16:00
  • 阅读 ( 234 )
  • 分类:默认分类

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
不期而遇
不期而遇

8 篇文章

作家榜 »

  1. 阿九 20 文章
  2. q5320 14 文章
  3. 不期而遇 8 文章
  4. admin 7 文章
  5. 此心安處是吾鄉 4 文章
  6. 小白 4 文章
  7. Mr.Pang 3 文章
  8. yixinBC 3 文章