Python作业

本文探讨了Python作为开发语言的优势,并深入讲解了在实际编程中如何使用numpy库进行数值计算和数据处理,适合初学者和进阶者提升技能。
摘要由CSDN通过智能技术生成

#cfkj01.py 乘法口诀
for i in range(1,10):
    for j in range(1,i+1):
        print(i,"*",j,"=",i*j,"\t",end="")
    print()

 

#cfkj02.py 乘法口诀
for i in range(1,10):
    for j in range(i,10):
        print(i,"*",j,"=",i*j,"\t",end="")
    print()

 


#cfkj03.py 乘法口诀
for i in range(1,10):
    for k in range(i-1):
        print("\t","       ",end="")
    for j in range(i,10):
        if(i*j<10):
            print(i,"*",j,"= ",i*j,"\t",end="")
        else:
            print(i,"*",j,"=",i*j,"\t",end="")
 
    print()

 

 


#cfkj04.py 乘法口诀
for i in range(1,10):
    for k in range(9-i):
        print("\t","       ",end="")
    for j in range(1,i+1):
        if(i*j<10):
            print(i,"*",j,"= ",i*j,"\t",end="")
        else:
            print(i,"*",j,"=",i*j,"\t",end="")
    print()


#cfkj05.py 乘法口诀
for i in range(1,10):
    for k in range(9-i):
        print("\t","   ",end="")
    for j in range(1,i+1):
        if(i*j<10):
            print(i,"*",j,"= ",i*j,"\t",end="")
        else:
            print(i,"*",j,"=",i*j,"\t",end="")
    print()

 

 


#cfkj06.py 乘法口诀
for i in range(1,10):
    for k in range(i-1):
        print("\t","   ",end="")
    for j in range(i,10):
        print(i,"*",j,"=",i*j,"\t",end="")
    print()

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值