#Pythton3

Pythton3实例

计算1-100之和#add.pyn=0sum=0forninrange(0,101):sum+=nprint(sum)实现99乘法法则#mul.pyi=1whilei<=9:j=1whilej<=i:mut=j*iprint("%d*%d=%d"%(j,i,mut),end="")j+=1print("")...
代码星球 ·2020-04-09