静的変数とメソッド (属性と動作) を使用して Python でクラスを作成しようとしています。
import numpy
class SimpleString():
popSize = 1000
displaySize = 5
alphatbet = "abcdefghijklmnopqrstuvwxyz "
def __init__(self):
pop = numpy.empty(popSize, object)
target = getTarget()
targetSize = len(target)
popSize が定義されていないため、配列をポップできないと表示されているにもかかわらず、コードが実行される場合