diff --git a/lesson5_7.py b/lesson5_7.py new file mode 100644 index 0000000..ff3e4fc --- /dev/null +++ b/lesson5_7.py @@ -0,0 +1,4 @@ +i = 1 # 行 +for j in range(1,10): # 列 +# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 + print(i,'*',j,'=',(i*j),end=(" ")) \ No newline at end of file