Mechanical Name Pickers! Random Cog Machine: Crane Claw Picker Jack in the Box! One Arm Bandit Name Picker! Scratchcard! Spin Stop Name Picker! Animal Name Pickers! Random Egg Gone Fishing Piggy Bank Duck Hunt! Hook A Duck! Whack A Mole!
import random upper_words = [word for word in words if word[0].isupper()] name_words = [word for word in upper_words if not word.isupper()] rand_name = ' '.join([name_words[random.randint(0, len(name_words))] for i in range(2)]) And some random names: >>> for n in ...
_("Searching the bushes around the duck, you found...", language) +"**"+ _(choosen.name, language) +"**, "+ _("that you unfortunately couldn't take, because your backpack is full.", language))) 开发者ID:DuckHunt-discord,项目名称:DHV3,代码行数:25,代码来源:ducks.py 示例13: r...