Skip to content

Commit ef97516

Browse files
authored
Merge pull request jackzhenguo#20 from CQ375482356/master
update
2 parents a354e83 + 9f05571 commit ef97516

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
```python
4+
#j计算三维坐标中两点之间距离
5+
import math
6+
x=(5,6,7)
7+
y=(8,9,9)
8+
a=list(map(lambda x: (x[0]-x[1])**2, zip(x, y)))
9+
print(round(math.sqrt(sum(a)),2))
10+
```
11+
12+
4.69
13+

0 commit comments

Comments
 (0)