print()函数输出时,不换行输出,输出的项之间用逗号分隔,正确的print函数是()
A: print(a,end="")
B: print(a,end=",")
C: print(a,",")
D: print(a)
A: print(a,end="")
B: print(a,end=",")
C: print(a,",")
D: print(a)
举一反三
- 要输出“Hello,World!”,以下_____语句段是错误的。 A: print("Hello,",end="")print('World!') B: print("Hello,World!") C: print("Hello,";end="")print('World!') D: print("Hello",end=",")print('World!')
- 阅读下面的python程序,请问输出结果是什么? Print(“T”,end=’’) if not 0 else print (‘F’,end=’’) Print(“T”,end=’’)if 6 else print (‘F’,end=’’) Print(“T”,end=’’)if””else print(‘F‘,end=’’) Print(“T”,end=’’)if”abc”else print(‘F’,end=’’) Print(“T”,end=’’)if____else print (‘F’,end=’’) Print(“T”,end=’’)if(1,2)else print(‘F’,end=’’) Print(“T”,end=’’)if[ ]else print(‘F’,end=’’) Print(“T”,end=’’)if[1,2]else print(‘F’,end=’’) Print(“T”,end=’’)if{ }else print(‘F’,end=’’) Print(“T”,end=’’)if{1,2}else print(‘F’,end=’’)
- 下面代码的输出是什么? print("A", end = ' ') print("B", end = ' ') print("C", end = ' ') print("D", end = ' ') A: ABCD B: A, B, C, D C: A B C D D: ABCD
- 下列程序的输出结果是()。[br][/br] print("A", end = ' ') print("B", end = ' ') print("C", end = ' ') print("D", end = ' ') A: ABCD B: A, B, C, D C: A B C D D: 'A''B''C''D'
- 执行下列语句,输出语句的结果分别是_____________print("A", end = ' ')print("B", end = ' ')print("C", end = ' ')print("D", end = ' ') A: ABCD B: A, B, C, D C: A B C D D: ABCD