报错: ValueError: a must be non-empty

Code:

 

Error message: 

Causes:

The reason is clear, range of the second parameter can not be zero, we write use range, and may not take into account the latter is zero, because the latter are generally not direct a number, we need to mark it.

Published 52 original articles · won praise 6 · views 8999

Guess you like

Origin blog.csdn.net/PMPWDF/article/details/102877442