#乘法口诀
for i in range(1,10):
for i2 in range(1,10):
if i<= i2:
s= i* i2
print(i,'x',i2,'=',s)
#规范乘法口诀表——研究了整整一个下午
for i in range(1,10):
num= ''
for i2 in range(1,i+1):
num+= str(i2)+ 'x'+str(i)+'='+str(i*i2)+'\t'
num.expandtabs(16)
print(num)
# #买大饼 大中小 100块买100张
# b = 5
# m = 3
# s = 1/3
for bin range(1,21):
for min range(1,34):
for sin range(1,101):
if (b* 5)+(3 * m)+(1/3 * s)== 100 and b+ m+ s== 100 :
print(b,m,s)
#列表分页提取
li= []
for i in range(1,100):
v= {'name' + str(i):'code','email'+str(i): 'code@11.com','age'+str(i): '18'}
li.append(v)
s= int(input('输入页码:'))
rez= (li[(s-1)*10:s*10])
for itemin rez:
print(item)
网友评论