Module china

Module china 

Source
Expand description

中国行政区划数据模块

Functions§

generate_random_unicode
生成随机的Unicode字符 生成范围在0x4E00到0x9FFF之间的随机数,将其转换为Unicode字符,并将它们收集到一个Vec中。 最后,通过迭代Vec并将字符收集到一个String中,生成了一个随机的Unicode字符串
is_uncommon_hanzi
province
生成随机省份
rand_chinese
生成指定长度的中文街道前缀
rand_hanzi
生成单个汉字(常用字范围), 限制到常用汉字范围(0x4E00-0x62FF)包含约5000常用字
random_street
生成随机中文街道