![](/img/trans.png)
[英]Python : Calculate the eucledean distances from one coordinates to a array with coordinates
[英]Calculate id from coordinates
讓x / y
成為我們的坐標對。 id 由(x - 1) + 5*(y - 1) = x + 5*y - 6
作為一個python函數,我們可以使用以下內容:
def find_id(x, y):
return x + 5*y - 6
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.