mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
...
This commit is contained in:
parent
7a2bd50932
commit
214af91120
@ -91,14 +91,14 @@ def mat_to_str_list(mat):
|
|||||||
ret = [[0,0,0], [0,0,0], [0,0,0]]
|
ret = [[0,0,0], [0,0,0], [0,0,0]]
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
for j in range(3):
|
for j in range(3):
|
||||||
ret[i][j] = str(mat[i, j])[:6]
|
ret[i][j] = str(round(mat[i, j], 2))[:6]
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def mat_list_to_str_list(mat_list):
|
def mat_list_to_str_list(mat_list):
|
||||||
ret = [[0,0,0], [0,0,0], [0,0,0]]
|
ret = [[0,0,0], [0,0,0], [0,0,0]]
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
for j in range(3):
|
for j in range(3):
|
||||||
ret[i][j] = str(mat_list[i][j])[:6]
|
ret[i][j] = str(round(mat_list[i][j], 2))[:6]
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def mat_to_list(mat):
|
def mat_to_list(mat):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user