()
| 17 | |
| 18 | def randomtext(): |
| 19 | def GBK2312(): |
| 20 | head = random.randint(0xb0, 0xf7) |
| 21 | body = random.randint(0xa1, 0xfe) |
| 22 | val = f'{head:x}{body:x}' |
| 23 | strr = bytes.fromhex(val).decode('gb2312',errors="ignore") |
| 24 | return strr |
| 25 | |
| 26 | def randomABC(): |
| 27 | A = np.random.randint(65, 91) |