test_explode.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:KiField 作者: xesscorp 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号