网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

20、以下程序的输出结果是()? letter = ['A','B', 'C', 'D', 'D'] for i in letter: if i == 'D': letter.remove(i) print(letter)

A.['A','B', 'C', 'D']

B.['A','B', 'C', 'D','D']

C.['A','B', 'C', 'D','D','D']

D.['A','B', 'C']


参考答案和解析
B 本题的考查点是不同格式的数据输出。prinff函数对不同类型的数据用不同的格式字符,”%d”是以带符号的十进制形式输出整数(正数不输出符号);”%O”以八进制无符号形式输出整数(不包括前导符0);”%x”以十六进制无符号形式输出整数(不包括前导符0x)。
更多 “20、以下程序的输出结果是()? letter = ['A','B', 'C', 'D', 'D'] for i in letter: if i == 'D': letter.remove(i) print(letter)A.['A','B', 'C', 'D']B.['A','B', 'C', 'D','D']C.['A','B', 'C', 'D','D','D']D.['A','B', 'C']” 相关考题
考题 I write the letter ________ you something. (A) tell(B) telling(C) to tell(D) tells

考题 When I saw him, he has finished the letter .

考题 A: Have you typed the letter for me? B:(). A、Yes, I have.B、Yes, I do.C、Yes, I've done.

考题 -Is it possible to find alternative payment terms for this order? -__________________________ A I’m afraid not. We insist on a letter of credit. ;B No, I think the price is reasonable. ;C I can’t be of any help in this respect.

考题 A: Have you typed the letter for me?B:_____A. Yes, I haveB. Yes, 1 doC. Yes, I've done

考题 I’m expecting a letter____Jimmy. A.forB.fromC.withD.into

考题 When I found quite a few pages()in the dictionary, I wrote the bookstore a letter of complaint. A.missingB.lost

考题 I'll read the letter_____them.

考题 _________ I am! I've forgotten to post your letter.A. What forgetful a creatureB. How forgetful a creatureC. What a forgetful creatureD. How a forgetful creature

考题 I ________ your letter all the time. A. expectB. expectedC. was expectingD. will expect

考题 I _____a letter when she ____. A.write, callsB. wrote, calledC.was writing, callsD. was writing, called

考题 Every time I mail a letter, I keep a ________ in case of need. A.duplicateB.quotaC.pumpD.fault

考题 I found a letter lying on the floor when I came into the classroom.()

考题 A: Could you mail the letter for me? B: Yes, I could.() 此题为判断题(对,错)。

考题 下列程序的输出结果是()。 include main() { int i; for(i=1;i=20) 下列程序的输出结果是( )。#include<stdio.h>main(){ int i;for(i=1;i<=10;i++){ if((i*i>=20) (i*i<=100) )break;}printf("%d\n",i*i);}A.49B.36C.25D.64

考题 以下程序的输出结果是()includemain(){ int i=0,a=0;while(i 以下程序的输出结果是( ) #include<stdio.h> main() { int i=0,a=0; while(i<20) { for(;;){if((i%10)==0)break;else i--;} i+=11;a+=i; } printf("%d\n",A) ; }A.21B.32C.33D.11

考题 以下程序的输出结果是_______。 main() { int i,a[10]; for(i=9;i>=0;i-)a[i]=10-i; print("%d%d%d,a[2],a[5],a[8]); }A.258B.741C.852D.369

考题 以下程序输出结果是 include main ( ){int i=0,a=0; while ( i 以下程序输出结果是 #include <stdio.h> main ( ) { int i=0,a=0; while ( i<2 0 ) { for(;;) { if ((i%10) ==0) break; else i--; } i+=11; a+=i; } print f ( "%d\n" , a); }A.21B.32C.33D.11

考题 运行以下程序后,输出的结果是 for i=1 to 3 cls print" i=",i; NextA.123B.3C.i=1i=2i=3D.i=3

考题 I will draft a letter for you.A:clarify B:formulate C:revise D:contribute

考题 I've loved my mother's desk since I was just tall enough to see above the top of it as mother sat writing letters. Standing by her chair, looking at the ink bottle, pens, and white paper, I decided that the act of writing must be the more wonderful thing in the world. Years later, during her final illness, mother kept different things for my sister and brother."But the desk," she'd said again, "it's for Elizaheth." I never saw her angry, never saw her cry. I knew she loved me; she showed it in acdou. But as a young girl, I wanted heart-to-heart talks between mother and daughter. They never happened.And a gulf opened between us. I was "too emotional". But she lived "on the surface". As years passed I had my own family. I loved my mother and thanked her for our happy family. I wrote to her in careful words and asked her to let me know in any way she ebose that she did forgive me. I posted the letter and waited for her answer. None came. My hope turned to disappointment, then little interest and, finally, peace-it seemed that nothing happened. I couldn't be sure that the letter had even got to mother. I only knew that I had written it, and l could stop trying to make her into someone she was not. Now the present of her desk told, as she'd never been able to, that she was pleased that writing was my chosen work. I cleaned the desk carefully and found some papers inside--a photo of my father and a one-page letter, folded and refolded many times. Give me an answer, my letter asks, in any way you choose. Mother, you always chose the act that speaks louder than words. What did mother do with her daughter's letter asking forgiveness?A.She had never received the letter. B.For years, she often talked about the letter. C.She didn't forgive her daughter at all in all her life. D.She read the letter again and again till she died.

考题 I'm very glad to draft the letter for you.A:revise B:clarify C:formulate D:contribute

考题 Can I have a look at your letter, please?()A、Excuse me, you can'tB、I'm afraid you can'tC、I can't agree with youD、Yes, thank you

考题 Letter “H” means“()”.A、I have a pilot on boardB、I require a pilotC、I have stoppedD、My vessel is healthy

考题 Letter “Q” means “()”.A、Man overboardB、You are running into dangerC、My vessel is healthy.D、I require a pilot.

考题 Letter “G” shows that“ ()”.A、I have a pilot on boardB、I require a pilot.C、I have stopped.D、My vessel is healthy .

考题 Which of the following is the command that installs Recovery Console on the Boot menu from the Windows 2000 CD?()A、DRIVE LETTER:/TOOLS/RCINSTALL.EXEB、DRIVE LETTER:/i386/WINNT32.EXE /RECCONSC、DRIVE LETTER:/i386/CMDCONS.EXED、DRIVE LETTER:/i386/WINNT32.EXE /CMDCONS

考题 单选题I wrote back to Charles _____ I received his letter.A when immediatelyB soonC immediatelyD suddenly