Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- wordlist = [
- "特盛",
- "GPA",
- "どんぐり拾い食い",
- "DJ",
- "えっちいいねマン",
- "路上寝",
- "ハゲ"
- ]
- class Itosan:
- def __init__(self):
- pass
- def generate(self, num):
- word = ""
- for i in range(num):
- word_tmp = random.choice(wordlist)
- word += word_tmp
- wordlist.remove(word_tmp)
- return word
- def into_man(self, string):
- print(string)
- if string.find("マン") == -1:
- return string + "マン"
- else:
- return string
- if __name__ == "__main__":
- Itoname = Itosan()
- num = random.randint(1, len(wordlist))
- name = Itoname.generate(num)
- ito_bessyo = Itoname.into_man(name)
- print(ito_bessyo)
Add Comment
Please, Sign In to add comment