From 3e99fbe23bf79cce35ff7ded5bd649b6127c65fd Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 16 Sep 2023 16:57:57 +0800 Subject: [PATCH] save project --- diy2.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 diy2.py diff --git a/diy2.py b/diy2.py new file mode 100644 index 0000000..b823a1c --- /dev/null +++ b/diy2.py @@ -0,0 +1,7 @@ + # 行 +i = 5 +j = 3 +for i in range(1,10): # 列 + for j in range(1,i+1): + print(i,"*",j,"=",(i*j),end=" ") + print() # 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 -- libgit2 0.25.0