Re: [問題] def的問題
你定義了函數,沒有執行它阿...
: 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
推
06/17 18:06, , 1F
06/17 18:06, 1F
討論串 (同標題文章)