From 8c710bd431d28f6c403ab192a8d5fe853a2ed6bb Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 22 Jul 2021 11:03:49 +0800 Subject: [PATCH] save project --- diy2.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/diy2.py b/diy2.py index e3ce81f..70d83ca 100644 --- a/diy2.py +++ b/diy2.py @@ -1,7 +1,8 @@ + i = 1 # 行 j = 3 # 列 # 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 -for j in range(1,i+1): - for i in range(1,10): +for j in range(1,10): + for i in range(1,j+1): print(j,"*",i,"=",(j*i),end=" | ") - print() + print() \ No newline at end of file -- libgit2 0.25.0