看板 Python 關於我們 聯絡資訊
你定義了函數,沒有執行它阿... : def move(): : def move_limit(): : xmin=1 : xmax=2 : ymin=1 : ymax=2 : return self.bnd(xmin,xmax,ymin,ymax) : def bnd(self,*arg): : spatial_limit=(sqrt((arg[1]-arg[0])^2+(arg[3]-arg[2])^2))*(1/3) : tolerance=spatial_limit/8 : return spatial_limit,tolerance lim,tor=move_limit() : print lim : print tor : -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.245.32
MAGICXX:喔喔~@@!!感謝~ 06/17 18:06