Esempio n. 1
0
def getRadomRawNameItemInfo():
    info = RawNameItemInfo()
    info.text = unichr(random.randint(0x4E00, 0x9FCC + 1))
    info.count = random.randint(0, 100)
    info.male_count = random.randint(0, 100)
    info.female_count = random.randint(0, 100)
    info.rank = random.randint(0, 100)
    info.sum_count = random.randint(0, 10000)
    return info
Esempio n. 2
0
 def getInitedRawNameItemInfo(text):
     """ Returns a defualt initialized RawNameItemInfo instance."""
     info = RawNameItemInfo()
     info.text = text
     info.count = 0
     info.male_count = 0
     info.female_count = 0
     info.rank = -1
     info.sum_count = -1
     return info