0
我需要知道如何修復此代碼,以便當名爲「redlist」的列表被稱爲具有座標列表的列表時,它在移動函數被調用時填充這些點。這是我到目前爲止有:如何使用Python從列表中填充海龜座標?
redlist=[]
def move():
penup()
if color()[0]=="red":
#coordinates of redlist should be filled here
def paint():
pendown()
if color()[0]=="red":
begin_fill
redlist.append(pos())