From b78f61ca425526e6163dfe7530d948817fa3bedf Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 7 Nov 2021 17:46:58 +0800
Subject: [PATCH] save project

---
 diy2.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/diy2.py b/diy2.py
index 2a6bf8b..13047a4 100644
--- a/diy2.py
+++ b/diy2.py
@@ -1,5 +1,11 @@
-i = 1   # 行
+   # 行
 # 列
 # 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
-for j in range(1,10):
-    print(i,'*',j,'=',(i*j),end=' ')
\ No newline at end of file
+i=1
+j=1
+
+
+for i in range(1,10):
+    for j in range(1,i+1):
+        print(i,'*',j,'=',(i*j),end=" ")
+    print()
\ No newline at end of file
--
libgit2 0.25.0