K
kw3x
@kw3x
0
Reputation
27
Posts
606
Profile views
0
Followers
0
Following
Posts made by kw3x
-
变量不相容该如何处理
TypeError: unsupported types for mul: 'int', 'NoneType'
sum_x=0
for x in range(px_numone,px_numtwo):
pixel_p = img.get_pixel(x,y) #get_pixel(x,y)获取图像在该点的坐标
sum_x += x*pixel_p //问题出现在此处
编译器显示:
TypeError: unsupported types for mul: 'int', 'NoneType',请问该如何解决?