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