From 33e1dc5118dc37743b03f4777993eeb080b33c81 Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Fri, 7 Mar 2025 05:41:59 +0800 Subject: [PATCH] update --- .../common/{example_timer.py => example_of_timer.py} | 0 .../common/example_of_writing_matrix.py | 6 ++++++ 2 files changed, 6 insertions(+) rename 2024.01.16_GUAN_package_learning/common/{example_timer.py => example_of_timer.py} (100%) create mode 100644 2024.01.16_GUAN_package_learning/common/example_of_writing_matrix.py diff --git a/2024.01.16_GUAN_package_learning/common/example_timer.py b/2024.01.16_GUAN_package_learning/common/example_of_timer.py similarity index 100% rename from 2024.01.16_GUAN_package_learning/common/example_timer.py rename to 2024.01.16_GUAN_package_learning/common/example_of_timer.py diff --git a/2024.01.16_GUAN_package_learning/common/example_of_writing_matrix.py b/2024.01.16_GUAN_package_learning/common/example_of_writing_matrix.py new file mode 100644 index 0000000..e8ec4a9 --- /dev/null +++ b/2024.01.16_GUAN_package_learning/common/example_of_writing_matrix.py @@ -0,0 +1,6 @@ +# 矩阵写入文件后查看 +import guan +import numpy as np +matrix = np.random.rand(5, 5) +guan.write_matrix_in_markdown_format(matrix=matrix, filename='markdown_matrix') +guan.write_matrix_in_latex_format(matrix=matrix, filename='latex_matrix') \ No newline at end of file