Skip to content

Commit

Permalink
typo修正
Browse files Browse the repository at this point in the history
  • Loading branch information
fono09 committed Mar 5, 2022
1 parent 52b4b12 commit 843fdad
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions library/omikuji.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@
from random import choices


class AbstractOmikujiResults(ABC)
class AbstractOmikujiResults(ABC):


"""
"""
おみくじの結果一覧の抽象クラス
"""
pass

pass

"""
Enumを継承している
"""


# Enumを継承している
AbstractOmikujiResults.register(Enum)


Expand Down Expand Up @@ -67,15 +65,12 @@ def draw(self):
"""
return choices(
population=self.entries,
weights=map(lambda entry: entry.rate, self.entries)
weights=map(lambda entry: entry.rate, self.entries),
k=1
)[0]


"""
以下おみくじの設定
"""
# 以下おみくじの設定

class OmikujiResults(AbstractOmikujiResults):
DaiKichi = auto()
Expand Down

0 comments on commit 843fdad

Please sign in to comment.