def random_prefix(draw):
#limited to unicode letters, see
#https://en.wikipedia.org/wiki/Unicode_character_property#General_Category
categories = ['Ll', 'Lt', 'Lm', 'Lo']
characters = st.lists(st.characters(whitelist_categories=categories), min_size = 1)
prefix = st.text(alphabet = draw(characters), min_size = 1)
return draw(prefix)
评论列表
文章目录