广州免费建站推荐,青岛全网推广怎么做,wordpress thegem,app软件定制开发一般多少钱我在这个问题上看到了多个问题#xff0c;但没能找到问题的答案。基本上#xff0c;我只想在图像上画一条线#xff0c;从python中的外部文件中获取坐标。我的代码是#xff1a;import Image, ImageDrawimport sysimport csvim Image.open(screen.png)draw I…我在这个问题上看到了多个问题但没能找到问题的答案。基本上我只想在图像上画一条线从python中的外部文件中获取坐标。我的代码是import Image, ImageDrawimport sysimport csvim Image.open(screen.png)draw ImageDraw.Draw(im)with open(outputfile.txt) as file:reader csv.reader(file, delimiter )for row in reader:if row[0] H:print Horizontal lineendx row[2]endy int(row[3])int(row[1])elif row[0] V:print Vertical lineendx row[2]row[1]endy row[3]x row[2]y row[3]draw.line((x,y, endx,endy), fill 1)im.show()除了台词一切都正常^{pr2}$我看到以下错误File dummy_test.py, line 21, in draw.line((x,y, endx,endy), fill 1)File /Library/Python/2.7/site-packages/PIL-1.1.7-py2.7-macosx-10.10- intel.egg/ImageDraw.py, line 200, in lineself.draw.draw_lines(xy, ink, width)SystemError: new style getargs format but argument is not a tuple如果我硬编码这些值我看不出问题。问题只发生在上述情况下。有人能指出问题吗在