函数与图形输出
输出正三角形
1 | def tri(c,n): |
输出反三角形
1 | def arctri(c,n): |
输出正反三角形
1 | def triangle(c,n): |
输出金字塔
1 | def pyd(c,n): |
输出实心(*)菱形,空白处为(.)
1 | def diad(n): |
打印九九乘法表
1 | for i in range(1,10): |
1 | def tri(c,n): |
1 | def arctri(c,n): |
1 | def triangle(c,n): |
1 | def pyd(c,n): |
1 | def diad(n): |
1 | for i in range(1,10): |