How can I print all unicode characters?

前端 未结 6 2585
陌清茗
陌清茗 2021-02-19 17:36

I want to print some unicode characters but u\'\\u1000\' up to u\'\\u1099\'. This doesn\'t work:

for i in range(1000,1100):
    s=unico         


        
6条回答
  •  耶瑟儿~
    2021-02-19 18:19

    unichr is the function you are looking for - it takes a number and returns the Unicode character for that point.

    for i in range(1000, 1100):
        print i, unichr(i)
    

提交回复
热议问题