You need to define count
prior to increasing its value through the += 1
operator. Indeed, count += 1
is equivalent to count = count + 1
and thus count must be defined before (e.g.: count = 0
at the beginning of your script).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…