for i in range(1, 3): for j in range(1, 3): if i * j <; 2: continue print i * j
举一反三
- for i in range(2): for j in range(3): print(i,j)
- x = 0for i in range(3): x+=1 for j in range(3): if(j): continue x+=1print(x)
- 以下程序语法正确的是: A: for i in range(1,10) for j in range(1,10) print("{}*{}={}".format(i,j,i*j)) B: for i in range(1,10): for j in range(1,10): print("{}*{}={}".format(i,j,i*j)) C: for i in range(1,10): for j in range(1,10): print("{}*{}={}".format(i,j,i*j)) D: for i in range(1,10): for j in range(1,10): print("{}*{}={}".format(i,j,i*j))
- x = 0for i in range(3): x+=1 for j in range(3): if(j): continue x+=1print(x)输出结果为( )
- 下面程序中语句print(i*j)共执行了_次 for i in range(10): for j in range(1, 5): print(i*j)