Skip to content

Book1_Ch07 代码21 h段代码下面 缺少结束时间计时 #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1zqqx opened this issue Apr 9, 2025 · 0 comments
Open

Book1_Ch07 代码21 h段代码下面 缺少结束时间计时 #206

1zqqx opened this issue Apr 9, 2025 · 0 comments

Comments

@1zqqx
Copy link

1zqqx commented Apr 9, 2025

Book1_Ch07 代码21 h段代码下面 缺少结束时间计时

start_time = time.time() # 开始时刻
for i in range(len(A)):
    for j in range(len(B[0])):
        for k in range(len(B)):
            C[i][j] += A[i][k] * B[k][j]
stop_time = time.time() # 结束时刻
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant