摘要: python 随机生成汉字 第一种方法:Unicode码 在unicode码中,汉字的范围是(0x4E00, 9FBF) 这个方法比较简单,但是有个小问题,unicode码中收录了2万多个汉字,包含很多生僻的繁体字. 第二种方法:GBK2312 gbk2312对字符的编码采用两个字节相组合,第一个字 阅读全文
posted @ 2020-06-30 17:56 隐忍沙丘 阅读(805) 评论(0) 推荐(0)
摘要: pip install RandomWords Random words: >>> from random_words import RandomWords >>> rw = RandomWords() >>> word = rw.random_word() >>> print word facto 阅读全文
posted @ 2020-06-30 17:54 隐忍沙丘 阅读(2447) 评论(0) 推荐(0)