首页 > 大学本科
题目内容 (请给出正确答案)
[单选题]

print(ls)()

A.'apple','orange','banana'

B.['apple','orange','banana']

C.[]

D.变量未定义的错误

答案
收藏

C、[]

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“print(ls)()”相关的问题
第1题
取ls–l输出结果的第5列的值的正确写法是()

A.ls–l|awk“{print$5}”

B.ls–l|awk‘{print$5}’

C.ls–l|awk{print$5}

D.ls–l|awk‘print$5’

点击查看答案
第2题
下面代码的执行结果是()。ls=[[1,2,3],[[4,5],6],[7,8]]print(len(ls))

A.3

B.4

C.8

D.1

点击查看答案
第3题
以下代码的输出结果是()。ls=【“橘子”,”芒果”,”草莓”,”西瓜”,”水蜜桃”】for k in ls:print(k,end=" ")

A.橘子芒果草莓西瓜水蜜桃

B.橘子 芒果 草莓 西瓜 水蜜桃

C.西瓜

D.橘子芒果草莓西瓜水蜜桃

点击查看答案
第4题
阅读以下程序,填写运行结果()。dic={'apple':2, 'orange':5, 'pear':3
, 'banana':6, 'watermelon':1} s=0 for k,v in dic.items(): if v>3: s+=v print(s)

点击查看答案
第5题
请写出下面程序的输出结果。def fun(s,n):If n==1:return Is[0];t=fun(s,n-1)if t<ls[n-1]:retu
请写出下面程序的输出结果。def fun(s,n):If n==1:return Is[0];t=fun(s,n-1)if t<ls[n-1]:retu

请写出下面程序的输出结果。

def fun(s,n):

If n==1:

return Is[0];

t=fun(s,n-1)

if t<ls[n-1]:

return t

else:

return Is[n-1]

print(fun([35,27,29,50-1],5)

print(fun([35,27,29,50-1],3))

点击查看答案
第6题
运行以下程序,输出结果为()。s='a1b2c3d4' lst=[] n=len(s) for i in range(0,n,2): ls

运行以下程序,输出结果为()。s='a1b2c3d4' lst=[] n=len(s) for i in range(0,n,2): lst.append(s[i:i+2] ) print(lst[-3])

点击查看答案
第7题
列表ls中存储了我国39所985高校所对应的学校类型。请以这个列表未数据变量,完善代码,统计输出各类型的数量。 ls = [综合, 理工, 综合, 综合, 综合, 综合, 综合, 综合, 综合, 综合,\ 师范, 理工..

列表ls中存储了我国39所985高校所对应的学校类型。请以这个列表未数据变量,完善代码,统计输出各类型的数量。 ls = ["综合", "理工", "综合", "综合", "综合", "综合", "综合", "综合", "综合", "综合",\ "师范", "理工", "综合", "理工", "综合", "综合", "综合", "综合", "综合","理工",\ "理工", "理工", "理工", "师范", "综合", "农林", "理工", "综合", "理工", "理工",\ "理工", "综合", "理工", "综合", "综合", "理工", "农林", "民族", "军事"] d = {} for word in ls: d[word] = d.get(word,0)+1 for k in d: print("{}:{}".format(_________)

点击查看答案
第8题
Warning: Holding a cell phone against your ear or storing it in your pocket may be hazardo
us to your health. This paraphrases a warning that cell phone manufacturers include in the small print that is often【C1】______ when a new phone is purchased. Apple, 【C2】______, doesnt want iPhones to come closer to you than 1.5 centimeters; Research In Motion, BlackBerrys manufacturer,【C3】______2.5 centimeters. If health issues【C4】______cell phone use, the implications are huge. According to a recent survey,Americans chat【C5】______cell phones 2.26 trillion minutes annually, which【C6】______ $100 billion for the wireless carriers. Epidemiologists(流行病学家)pointed out that brain cancer is a(n) 【C7】______. Overall, there has not been a(n) 【C8】______ in its incidence since cell phones arrived. But the average【C9】______an increase in brain cancer in the 20-to-29 age group【C10】______a drop for the older population. "Most cancers have【C11】______causes," an expert says,【C12】______she points to laboratory research that suggests low-energy radiation could damage cells that could possibly lead to cancer. Besides, children are more【C13】______ to radiation than adults, other scientists point out. Radiation that【C14】______only five centimeters into the brain of an adult will reach much deeper into the brains of children because their skulls are thinner and their brains【C15】______ more absorptive fluid. Henry Lai ,a research professor at the University of Washington,began laboratory radiation studies in 1980 and found that rats【C16】______ radio frequency radiation had【C17】______DNA in their brains. Ms. Davis recommends【C18】______wired headsets or the phones speaker. Children should text【C19】______ call, she said, and pregnant women should keep phones away from the abdomen【C20】______.

【C1】

A.tossed off

B.tossed about

C.tossed aside

D.tossed down

点击查看答案
第9题

Apple addicts refer to people who ().

A.like Apple products

B.never use Apple products

C.work for Apple

D.know nothing about Apple

点击查看答案
第10题
Adam' s apple is().

A.apple from Eden

B.apple for men

C.men' s throat

D.men' s eyes

点击查看答案
第11题
A.The Farmer and an Apple Tree.B.How to Plant an Apple Tree.C.A Friend's Gift.D.An App

A.The Farmer and an Apple Tree.

B.How to Plant an Apple Tree.

C.A Friend's Gift.

D.An Apple Tree.

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改