阅读程序。程序运行结果是: L='Anhui University of Finance and Economics'.split() print(sorted(L,key=lambda x:len(x)))

A. ['Anhui', 'Economics', 'Finance', 'University', 'and', 'of']

B. ['of', 'and', 'Anhui', 'Finance', 'Economics', 'University']

C. ['and',……]

D. 以上都不正确

参考答案与解析:

相关试题

Which of the following facts about 'token economics' is not correct?

Which of the following facts about token economics is not correct?A. Students ar

  • 查看答案
  • 下面程序的输出结果是()。 def StudentInfo(country='中国',name): print('(},{)'.format(name,country)

    下面程序的输出结果是()。 def StudentInfo(country=中国,name): print((},{).format(name,country)

  • 查看答案
  • 以下程序的输出结果是:s=''try:for i in range(1, 10, 2):s.append(i)except:print('error')print(s)

    以下程序的输出结果是:s=try:for i in range(1, 10, 2):s.append(i)except:print(error)print(s)

  • 查看答案
  • 阅读程序:运行上面的程序,单击命令按钮,输出结果为______。

    [单选题]阅读程序:运行上面的程序,单击命令按钮,输出结果为______。A.8 16B.9 14C.10 20D.7 14

  • 查看答案
  • 以下程序的输出结果是()。 for i in"Nation":for k in range(2):if i='n': break print

    以下程序的输出结果是()。 for i in"Nation":for k in range(2):if i=n: break print

  • 查看答案
  • 语句:print('abcDEF'.islower( ))的输出结果是________________

    语句:print(abcDEF.islower( ))的输出结果是________________语句:print('abcDEF'.islower())的输出

  • 查看答案
  • 1.0point possible (graded)设有语句如下,则程序的输出结果是_。x = 'cdachcd'print(x.index('acb'))23

    1.0point possible (graded)设有语句如下,则程序的输出结果是_。x = cdachcdprint(x.index(acb))231.0p

  • 查看答案
  • 运行下段程序:names= [1,2,3,'hello']names.remove('hello')print(names)结果为:_ [1,2,3,'hell

    运行下段程序:names= [1,2,3,hello]names.remove(hello)print(names)结果为:_ [1,2,3,hello][2,

  • 查看答案
  • 运行下段程序:names=[1,2,3,'hello']del names[-1]print(names)结果为: ( )[1,2,3,'hello'] [2,

    运行下段程序:names=[1,2,3,hello]del names[-1]print(names)结果为: ( )[1,2,3,hello] [2,

  • 查看答案
  • 阅读以下程序,写出程序运行后的输出结果是 ______。#includevoid

    [单选题]阅读以下程序,写出程序运行后的输出结果是 ______。includevoid main(){ char a[]={阅读以下程序,写出程序运行后的输出结果是 ______。 #include<iostream.h> void main(){ char a[]={'H','e','r','1',‘o’,'/0'}; int i, j; i=sizeof(a)/sizeof(char); j=strlen(a) cout<<i<<' '<<j; }A.6 6B.5 6C.1

  • 查看答案