PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
*****Code created by CharlesXstorm Ukadike ©️2020
I was reading about unicodes and ascii characters, so i decided to do this just for fun :)
The unicode for the chinese characters will start from: 0x4E00 to 0x4FFF in hex values.
To spit the characters, all you need is to run an iteration within the required range and decode them.
**********************************************
If you like the code, please give it a thumbs up :)
"""
indx = "0x4E00"
ind = list(indx)
i = 4
asc =[]
zhwen=[]
def gen(i): #defining a generator that produces hex digit range 0 to F.
for any in range(i):
if (47<any<58)or(64<any<71):
yield chr(any)
def hexa(x,y,z,i): #defining a func() that takes in 4 arg and produces a specific list
x[i]=y
rand="".join(x)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run