From dade0e7f48072fc1ca29c4488e04176c10ebec90 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 12 Mar 2023 12:16:27 +0800 Subject: [PATCH] save project --- diy2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diy2.py b/diy2.py index e168785..c34b132 100644 --- a/diy2.py +++ b/diy2.py @@ -1,5 +1,5 @@ -for i in range(1,10) # 行 - for j in range(1,10): # 列 +for i in range(1,10) : # 行 + for j in range(1,i+1): # 列 # 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 - print(j,"*",i,"=",(j*i),end=" "/n) -print() \ No newline at end of file + print(j,"*",i,"=",(j*i),end=" ") + print() \ No newline at end of file -- libgit2 0.25.0