首页 > 编程语言 > 详细

Python 第三天

时间:2018-05-15 23:34:12      阅读:164      评论:0      收藏:0      [点我收藏+]

  一、算术运算符

          + - * /  //(整除取整数) %(取余数) **

  二、比较符

             > < >= <= == != True False

 

  三、部分代码:

while num2>0:
        num=4
    while num >0:
        print("#",end="")
        num -=1
    print()
    num2 -=1
    
    
    
    
line=5
while line>0:
    #print("#")
    tmp=line
    while tmp>0:
        print("#",end="")
        tmp=tmp-1
        
    print()
    line -=1
first = 1
# second = 9

while first<=9:
    # print(str(first)+"*"+str(first)+"=",first*first)
    sec=1
    while sec <=first:
        print (str(sec)+"*"+str(first)+"="+str(first*sec),end="\t")
        sec=sec+1
    print()
    first=first+1
    

 

Python 第三天

原文:https://www.cnblogs.com/xmxnx/p/9043645.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!