标签:else 代码 span style range == color python class
n = 1 s = 0 while n<100: temp = n%2 if temp == 0: #偶数 s = s-n else: s = s+n n = n+1 print(s)
n = 1 s = 0 while n < 101: s = s+n n = n+1 print(s) #一行代码搞定 print (sum(range(101)))
for i in range(1,10): for j in range(1,10): if i>=j: print("%s * %s == %s"%(j,i,i*j),end="\t") print("")
标签:else 代码 span style range == color python class
原文地址:https://www.cnblogs.com/tangkaishou/p/9462166.html