🌈 搜索
📅  最后修改于: 2022-03-11 14:47:12.351000             🧑  作者: Mango
import math p1 = [4, 0] p2 = [6, 6] distance = math.sqrt( ((p1[0]-p2[0])**2)+((p1[1]-p2[1])**2) ) print(distance)