回答編集履歴

1

ιと jが逆

2021/11/27 09:53

投稿

TakaiY
TakaiY

スコア12765

test CHANGED
@@ -40,11 +40,11 @@
40
40
 
41
41
  for j in range(2):
42
42
 
43
- button_top = top + (height + 2) * i
43
+ button_top = top + (height + 2) * j
44
44
 
45
45
  for i in range(8):
46
46
 
47
- button_left = left + (width + 2) * j
47
+ button_left = left + (width + 2) * i
48
48
 
49
49
  rect = Rect(button_left, button_top, width, height)
50
50