X = [[12,7,3],
[4,5,6],
[7,8,9]]
Y = [[15,8,1],
[6,7,3],
[4,5,9]]
list_add = []
for i in range(len(X)) :
list = []
for j in range(len(X[i])):
m = X[i][j] + Y[i][j]
list.append(m)
list_add.append(list)
print(list_add)
num = int(input("请输入一个数:"))
print('%d='%num,end='')
while num > 1:
for i in range(2,num+1):
if (num % i) == 0:
num = int(num / i)
if num == 1:
print('%d'%i,end='')
else:
print('%d*'%i,end='')
break
print()
num = 30
sum = 221
for x in range(31):
for y in range(31):
if x + y + (30 - x - y) == num and 6.5*x + 9*y + 10*(30 - x - y) == sum and (30 - x - y) >= 0:
print("小孩有",x,"人,女人有",y,"人,男人有",(30 - x - y),"人")