CountDownLatch的downCount()方法功能是()。
A: 使得count+1B.使得count-1C.count变为0
B: count不变
C: 使得count+1
D: 使得count-1
E: count变为0
F: count不变
A: 使得count+1B.使得count-1C.count变为0
B: count不变
C: 使得count+1
D: 使得count-1
E: count变为0
F: count不变
举一反三
- count = 0 while count < 5: print (count, " 小于 5") count = count + 1 else: print (count, " 大于或等于 5")
- 阅读以下程序public class Count{static int count;int number;public Count(){count = count + 1;number = count;}}class Test{public static void Main(){Count a = new Count();Count b = new Count();Count c = new Count();}}程序运行后,对象a的count值是() A: 0 B: 1 C: 2 D: 3
- 使用for 语句把 Python 字符串的每个字母依次打印出来,下面哪个选项实现了() A: count=1 for letter in Python: print(“Python的第"+str(count)+"个字母是”+letter) count=count+1 B: count=1 for letter "Python”: print(“Python的第"+str(count)+"个字母是”+letter) count=count+1 C: count=1 for letter in "Python": print(“Python的第"+str(count)+"个字母是”+letter) count=count+1
- 使用while 语句实现打印出1至10.count = 1while ( ) print (count) count = count + 1 A: count B: True C: count D: count
- 下列程序的运行结果是( )。 count = 0 while count < 5: print(count, " is less than 5") count = count + 1 else: print(count, " is not less than 5")