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())
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!