package-example <<
Previous Next >> funtion-args
geometry
_init_
#一個封包必須要有_init_.py(可以是空的)才能判別,否則判定為普通資料夾
#封包就是模組的資料夾
line
def dis(x1,x2,y1,y2):
return ((x2-x1)**2+(y2-y1)**2)**0.5
point
def slope(x1,x2,y1,y2):
return (y2-y1)/(x2-x1)
package-example <<
Previous Next >> funtion-args