print("模式A")
while True:
for i in range (1,7):
for j in range(1, 7):
if j <= i:
print(j,end="\t")
print()
break
print()
print("模式B")
while True:
for i in range (6,0,-1):
for j in range(1, 7):
if j <= i:
print(j,end="\t")
print()
break
print()
print("模式C")
while True:
for i in range (1,7):
for j in range(6, 0,-1):
if j <= i:
print(j,end="\t")
else :
print("",end= "\t")
print()
break
print()
print("模式D")
while True:
for i in range (6,0,-1):
a = 6 - i
print("\t" * a,end ="")
for j in range(1, 7):
if j <= i:
print(j,end="\t")
print()
break
print()
for i in range (0,8):
for j in range(7-i):
print(" ",end=" ")#输出空格
for k in range(i+1):
print(2**k,end=" ")#递增的数
k+=1
t=i
for k in range(i):
print(2**(t-1),end=" ")#递减的数,t用来作为迭代量
t=t-1
k=k+1
print("\n")
i = []
for num in range(2,100):
for n in range(2,num):
if num % n == 0:
break
else:
i.append(num)
print("100以内质数:")
print(i)