count = 0while count < 5: print( count) count = count + 2print( “Over!")
count = 0while count < 5: print( count) count = count + 2print( “Over!")
下面代码的输出结果是()。a=4a^=3b=a^2print(a,end=",")print(b) A: 7,5 B: 4,3 C: 5,7 D: 64,4096
下面代码的输出结果是()。a=4a^=3b=a^2print(a,end=",")print(b) A: 7,5 B: 4,3 C: 5,7 D: 64,4096
下面代码a = 4a ^= 3b = a ^ 2print(a,end=",")print(b)的输出结果是 A: 7,5 B: 64, 4096 C: 5,7 D: 4,3
下面代码a = 4a ^= 3b = a ^ 2print(a,end=",")print(b)的输出结果是 A: 7,5 B: 64, 4096 C: 5,7 D: 4,3
已知列表lst=[1,2,3],则分别执行以下代码,结果为[1,4,9]的是: A: for i in lst: i=i**2print(lst) B: for i in range(0,3): lst[i]**=2print(lst) C: for i in range(0,3): lst[i]=i**2print(lst) D: for i in range(0,3): lst[i]+=lst[i]print(lst)
已知列表lst=[1,2,3],则分别执行以下代码,结果为[1,4,9]的是: A: for i in lst: i=i**2print(lst) B: for i in range(0,3): lst[i]**=2print(lst) C: for i in range(0,3): lst[i]=i**2print(lst) D: for i in range(0,3): lst[i]+=lst[i]print(lst)
已知列表lst=[1,2,3],则分别执行以下代码,结果为[9,4,1]的是: A: for i in lst: i=i**2print(lst) B: for i in range(0,3): lst[i]**=2print(lst) C: for i in range(1,4): lst[3-i]=i**2print(lst) D: for i in range(2,-1,-1): lst[i]**=2print(lst)
已知列表lst=[1,2,3],则分别执行以下代码,结果为[9,4,1]的是: A: for i in lst: i=i**2print(lst) B: for i in range(0,3): lst[i]**=2print(lst) C: for i in range(1,4): lst[3-i]=i**2print(lst) D: for i in range(2,-1,-1): lst[i]**=2print(lst)
输入一个表示半径的浮点数,计算圆的面积的程序正确的有:(圆周率取3.14,结果保留2位小数) A: radius = float(input())area = 3.14 * radius ** 2print(round(area, 2)) B: radius = float(input())area = 3.14 * radius * radiusprint(round(area, 2)) C: radius = input()print(round(3.14 * radius ** 2, 2)) D: radius = float(input())print(round(3.14 * radius * radius, 2))
输入一个表示半径的浮点数,计算圆的面积的程序正确的有:(圆周率取3.14,结果保留2位小数) A: radius = float(input())area = 3.14 * radius ** 2print(round(area, 2)) B: radius = float(input())area = 3.14 * radius * radiusprint(round(area, 2)) C: radius = input()print(round(3.14 * radius ** 2, 2)) D: radius = float(input())print(round(3.14 * radius * radius, 2))
f1=lambdax:x*2f2=lambdax:x**2print(f1(f2(2)))上述代码的输出结果是____。? 4|2|6|8
f1=lambdax:x*2f2=lambdax:x**2print(f1(f2(2)))上述代码的输出结果是____。? 4|2|6|8
以下代码的输出结果是def fun(num):num *= 2print(num)x = 20fun(x)print(x) A: 20 20 B: 10 10 C: 20 40 D: 40 20
以下代码的输出结果是def fun(num):num *= 2print(num)x = 20fun(x)print(x) A: 20 20 B: 10 10 C: 20 40 D: 40 20
下列各语句输出结果为True的是( )。 A: print(7<2) B: print(5>0) C: print((1>2)and(2>1)) D: print(2==0)
下列各语句输出结果为True的是( )。 A: print(7<2) B: print(5>0) C: print((1>2)and(2>1)) D: print(2==0)
下列语句,输出为True的是()。 A: print(3 > 3 and 3 > 2) B: print(2 > 3) C: print(not 3) D: print(2 and True)
下列语句,输出为True的是()。 A: print(3 > 3 and 3 > 2) B: print(2 > 3) C: print(not 3) D: print(2 and True)