def generate_name():
t = time.localtime()
a = random.choice(['blue', 'yellow', 'green', 'red', 'orange','pink','grey',
'white', 'black', 'turkouse', 'fushia', 'beige','purple',
'rustic', 'idyllic', 'kind', 'turbo', 'feverish','horrid',
'master', 'correct', 'insane', 'relevant','chocolate',
'silk', 'big', 'short', 'cool', 'mighty', 'weak','candid',
'figting','flustered', 'perplexed', 'screaming','hip',
'glorious','magnificent', 'crazy', 'gyrating','sleeping'])
b = random.choice(['battery', 'horse', 'stapler', 'giraff', 'tiger', 'snake',
'cow', 'mouse', 'eagle', 'elephant', 'whale', 'shark',
'house', 'car', 'boat', 'bird', 'plane', 'sea','genius',
'leopard', 'clown', 'matador', 'bull', 'ant','starfish',
'falcon', 'eagle','warthog','fulcrum', 'tank', 'foxbat',
'flanker', 'fullback', 'archer', 'arrow', 'hound'])
datestr = time.strftime("%m%d%H%M%S", t).encode('utf8')
b36 = base36encode(int(datestr))
name = "{}_{}_{}".format(b36,a,b)
return name.upper()
评论列表
文章目录