In python3, print
is a function that returns None
. So, the line:
print ("number of donuts: " ) +str(count)
you have None + str(count)
.
What you probably want is to use string formatting:
print ("Number of donuts: {}".format(count))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…