阅读以下程序,填写运行结果()。dic={('小明',18):['男',98], ('小红'
阅读以下程序,填写运行结果()。dic={('小明',18):['男',98], ('小红',19):['女',87], ('小玲',18):['女',91], ('小刚',20):['男',83]} for k,v in dic.items(): if v[1]>90: print(k[1],end='') #此处''为空字符串
阅读以下程序,填写运行结果()。dic={('小明',18):['男',98], ('小红',19):['女',87], ('小玲',18):['女',91], ('小刚',20):['男',83]} for k,v in dic.items(): if v[1]>90: print(k[1],end='') #此处''为空字符串
第2题
第3题
阅读以下程序,填写运行结果()。def f(n): s=str(n) result='' for i in range(0,len(s)): result=s[i]+result return result print(f(345))
第4题
阅读以下程序,填写运行结果()。def f(m,n): s='' #此处''为空字符串 for i in range(m,n): s+=str(i) return s print(f(3,5)+f(1,4))
第5题
第6题
A.9
B.5
C.6
D.6.1
第7题
函数fun的功能是:根据以下公式求p的值,结果由函数值返回。m与n为两个正数且要求m>n。
例如:m=12,n=8时,运行结果应该是495.000000。请在题目的空白处填写适当的程序语句,将该程序补充完整。 include<conio.h> include<stdio.h) float fun(int m,int n) { int i; double p=1.0; for(i=1;i<=m;i++)【 】; for(i=1;i<=n;i++)【 】; for(i=1;i<=m-n;i++)p=p/i; return P;} main() { clrscr(); printf("p=%f\n",fun(12,8));}
第8题
阅读以下程序,输出结果为_________。 class D{ public static void main (String args[]){ int d=21; Dec dec=new Dec(); dec. decrement (d): System.out.println(d); } } class Dec{ public void decrement(int decMe){ decMe=decMe-1: } }
第9题
A.x+y+z=48
B.x+y+z=35
C.x+z=35
D.不确定
第10题
第11题