Open wwziyin opened 3 years ago
When I run the program, there is an error:
for i in xrange(self.step, self.width - self.step/2, self.step):
NameError: name 'xrange' is not defined
Can someone help me? Thanks.
https://blog.csdn.net/mao_hui_fei/article/details/89881396
the code is written in python 2. xrange() does not work in python 3, use range()
When I run the program, there is an error:
NameError: name 'xrange' is not defined
Can someone help me? Thanks.