标签:print 运算符 first lse 部分 pytho bsp nbsp lin
一、算术运算符
+ - * / //(整除取整数) %(取余数) **
二、比较符
> < >= <= == != 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
标签:print 运算符 first lse 部分 pytho bsp nbsp lin
原文地址:https://www.cnblogs.com/xmxnx/p/9043645.html