1.打印出来1-100之间的偶数
“”“
for num in range(2,101,2):
print(num)
“”“
2.打印1-100以内奇数并且能被3整除
“”“
for num in range(0,101,3):
if num%2!=0:
print(num)
“”“
3.乘法表
“”“
for i in range(1,10):
for j in range(1,i+1):
print("%d*%d=%d"%(j,i,i*j),end="\t")
print(" ")
“”“
4.打印三角形
“”“
num=int(input("输入长:"))
for i in range(1,num):
for n in range(1,num+1-i):
print(" ",end="")
for j in range(1,i+1):
print("*",end=" ")
print("")
“”“
5.打印矩形
“”“
a=int(input("输入长:"))
b=int(input(