Before the sales start, I make a list of ______ my kids will need for the coming season.
A. why
B. what
C. how
D. which
第1题:
#让程序给你随机选择一种饮品 ######FILL###### import ____ list_drink = ['Coffe', 'water', 'orange juice', 'tea'] my_drink = random.choice(list_drink) print('my drink is :',my_drink)
第2题:
2、在Need矩阵中,need(i,j)=a表示()。
A.进程i最多需要j类资源a个
B.进程i最多还需要j类资源a个
C.进程j最多还需要i类资源a个
D.进程j最多需要i类资源a个
第3题:
87、如果输入start数据为2,输入end数据为4,给出下列程序的运行结果____ list1 = ["hello", "world", "python","java", "pascal"] start,end=int(input("输入start:")),int(input("输入end:")) list2=list1[start:end] print(list2)
第4题:
#让程序给你随机选择一种饮品 ######FILL###### import ____ list_drink = ['Coffe', 'water', 'orange juice', 'tea'] ######FILL###### my_drink = random.____(list_drink) print('my drink is :',my_drink)
第5题:
请输出如下命令的执行结果: my_list = [s.lower() for s in 'Life is short, you need Python.'.split(' ')] print 'short' in my_list print my_list[5]
第6题:
写出以下代码的输出结果: public class Test{ public static void main(String[] args){ int list[] = {1,2,3,4,5,6}; for(int i = 1; i < list.length; i++) list[i] = list[i - 1]; for(int i = 0; i < list.length; i++) System.out.print(list[i] + " "); } }