From 1ff7f9cc281d7e41b21f4eb55b38dc634a77b7ee Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 16 Oct 2021 14:14:51 +0800 Subject: [PATCH] save project --- diy2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diy2.py b/diy2.py index f7beb20..833d5de 100644 --- a/diy2.py +++ b/diy2.py @@ -1,6 +1,6 @@ i = 1 # 行 # 列 # 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 -for i in range(1,10) - for j in range(1,i+1) +for i in range(1,10): + for j in range(1,i+1): print(j,"*",i"=",(j*i)end=" ") print() \ No newline at end of file -- libgit2 0.25.0