Generate random UTF-8 string in Python

后端 未结 8 1391
清酒与你
清酒与你 2020-12-09 08:38

I\'d like to test the Unicode handling of my code. Is there anything I can put in random.choice() to select from the entire Unicode range, preferably not an external module?

8条回答
  •  有刺的猬
    2020-12-09 08:59

    You could download a website written in greek or german that uses unicode and feed that to your code.

提交回复
热议问题