阅读以下程序,填写运行结果()。dic={'a':[1,2,2,3],'b':[1,4,5,6,2],'c':[3,7,8,9]} for k,v in dic.items(): if v.count(2)==1: print(k)
写出以下程序的运行结果。
#include int fun(int a){int b=0;static int c=3;b ; c ;return(a b c);}
main(){int i, a=5;for (i=0; i<3; i )cout<< i<< " "<< fun(a)<< " ";}
阅读以下程序,填写运行结果()。lst=[(1,3),(4,2),(6,8),(3,0)] lst.sort(key=lambda i:i[0]*i[1]) print(lst[-1])
阅读以下程序,给出运行结果。
publicclassCase{
publicstaticvoidmain(Stringargs[]){
floatx=11;
floaty=4;
intz=(int)(x%y);
switch(z){
case1:
x=x+1;
case2:
x=x+2;
default:
x=x+3;
}
System.out.println(“Valueofxis:”+x);
}
}
运行结果是: