刷题
导入试题
【判断题】
Python标准库os中的方法startfile()可以启动任何已关联应用程序的文件,并自动调用关联的程序。
A. 对
B. 错
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
A
解析
暂无解析
相关试题
【判断题】
程序中异常处理结构在大多数情况下是没必要的。
A. 对
B. 错
【判断题】
在try…except…else结构中,如果try块的语句引发了异常则会执行else块中的代码。
A. 对
B. 错
【判断题】
Python标准库threading中的Lock、RLock、Condition、Event、Semaphore对象都可以用来实现线程同步。
A. 对
B. 错
【判断题】
异常处理结构中的finally块中代码仍然有可能出错从而再次引发异常。
A. 对
B. 错
【判断题】
在GUI设计中,复选框往往用来实现非互斥多选的功能,多个复选框之间的选择互不影响。
A. 对
B. 错
【判断题】
在GUI设计中,单选按钮用来实现用户在多个选项中的互斥选择,在同一组内多个选项中只能选择一个,当选择发生变化之后,之前选中的选项自动失效。
A. 对
B. 错
【判断题】
在Python中定义类时实例方法的第一个参数名称必须是self。
A. 对
B. 错
【判断题】
在Python中定义类时实例方法的第一个参数名称不管是什么,都表示对象自身。
A. 对
B. 错
【判断题】
Python代码可以内嵌在asp文件中。
A. 对
B. 错
【判断题】
无法配置IIS来支持Python程序的运行。
A. 对
B. 错
【判断题】
Python标准库os中的方法startfile()可以用来打开外部程序或文件,系统会自动关联相应的程序来打开或执行指定的文件。
A. 对
B. 错
【判断题】
在编写应用程序时,应合理控制线程数量,线程并不是越多越好。
A. 对
B. 错
【判断题】
在多线程编程时,当某子线程的daemon属性为False时,主线程结束时会检测该子线程是否结束,如果该子线程尚未运行结束,则主线程会等待它完成后再退出。
A. 对
B. 错
【判断题】
Python只能使用内置数据库SQLite,无法访问MS SQLServer、ACCESS或Oracle、MySQL等数据库。
A. 对
B. 错
【判断题】
使用OpenGL画图时,画点是最基本的操作,具体生成的图形由glBegin()函数指定的mode来决定。例如,mode值为GL_TRIANGLES时表示将要绘制三角形。
A. 对
B. 错
【判断题】
OpenGL采用的“状态机”工作方式,一旦设置了某种状态以后,除非显式修改该状态,否则该状态将一直保持。
A. 对
B. 错
【判断题】
假设os模块已导入,那么列表推导式 [filename for filename in os.listdir(‘C:\Windows’) if filename.endswith(‘.exe’)] 的作用是列出C:\Windows文件夹中所有扩展名为.exe的文件。
A. 对
B. 错
【判断题】
表达式 list(‘[1, 2, 3]’) 的值是[1, 2, 3]。
A. 对
B. 错
【判断题】
在函数内部没有任何声明的情况下直接为某个变量赋值,这个变量一定是函数内部的局部变量。
A. 对
B. 错
【判断题】
定义类时如果实现了contains()方法,该类对象即可支持成员测试运算in。
A. 对
B. 错
【判断题】
定义类时如果实现了len()方法,该类对象即可支持内置函数len()。
A. 对
B. 错
【判断题】
定义类时实现了eq()方法,该类对象即可支持运算符==。
A. 对
B. 错
【判断题】
定义类时实现了pow()方法,该类对象即可支持运算符**。
A. 对
B. 错
【判断题】
二进制文件不能使用记事本程序打开。
A. 对
B. 错
【判断题】
使用普通文本编辑器软件也可以正常查看二进制文件的内容。
A. 对
B. 错
【判断题】
二进制文件也可以使用记事本或其他文本编辑器打开,但是一般来说无法正常查看其中的内容。
A. 对
B. 错
【判断题】
Python标准库os中的方法isfile()可以用来测试给定的路径是否为文件。
A. 对
B. 错
【判断题】
Python标准库os中的方法exists()可以用来测试给定路径的文件是否存在。
A. 对
B. 错
【判断题】
Python标准库os中的方法isdir()可以用来测试给定的路径是否为文件夹。
A. 对
B. 错
【判断题】
Python标准库os中的方法listdir()返回包含指定路径中所有文件和文件夹名称的列表。
A. 对
B. 错
【判断题】
Python扩展库xlwt支持对Excel 2003或更低版本的Excel文件进行写操作。
A. 对
B. 错
【判断题】
Python扩展库xlrd支持对Excel 2003或更低版本的Excel文件进行读操作。
A. 对
B. 错
【判断题】
带有else子句的异常处理结构,如果不发生异常则执行else子句中的代码。
A. 对
B. 错
【判断题】
异常处理结构也不是万能的,处理异常的代码也有引发异常的可能。
A. 对
B. 错
【判断题】
在异常处理结构中,不论是否发生异常,finally子句中的代码总是会执行的。
A. 对
B. 错
【判断题】
在Python中定义函数时不需要声明函数参数的类型。
A. 对
B. 错
【判断题】
在Python中定义函数时不需要声明函数的返回值类型。
A. 对
B. 错
【判断题】
在函数中没有任何办法可以通过形参来影响实参的值。
A. 对
B. 错
【判断题】
已知 x = 3,那么执行语句 x+=6 之后,x的内存地址不变。
A. 对
B. 错
【判断题】
已知x为非空字符串,那么表达式 ”.join(x.split()) == x 的值一定为True。
A. 对
B. 错
推荐试题
【填空题】
explore ,transmit, resource, emerge,yield, pose, assume, confidence,inherit, comprehensive Given the chance to show his ability, he regained [ ]and began to succeed in school
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to The new government has committed to [ ] emissions of greenhouse gases
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to My parents do not object to my taking part-time jobs, but they remind me not to let them [ ] my school work
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to Anger, worry, disappointment, these negative emotions [ ] your heart, brain and body
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to If a person adopts an unhealthy lifestyle, he will surely be [ ]developing diseases.
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to Most people were ready to give up on him when he [ ] of school, but later he returned and earned his degree
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to Drinking too much can increase the risk of developing high blood pressure, which [ ] can lead to heart attack or stroke
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to Low-cost airlines are emerging all over Asia; this will [ ]the development of the worlds air-travel market as a whole
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to When you move to a new country, you may find the food there strange and you may miss the familiar smells of the food [ ] in your country
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to Although he kept trying and failing, I always [ ] the belief that he would succeed one day.
【填空题】
take a toll on,in other words ,drop out,in turn ,at risk (of) ,interfere with,be accustomed to, contribute to,cut back on ,hold on to The tax only affects people with an annual income over $200,000-[ ], it will only attect the very rich.
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional Studies[ ]that children who often take part in cooperative programs benefit a lot more than other children
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional They are such a(n) [ ] family- they must have been shocked when their son dyed(染) his hair pink,
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional Testing students by examinations has long been regarded as a reliable way to [ ]students'ability
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional Many power stations have been modernized to give off less pollution, or they were moved further away from the living areas in order to [ ] the damage,
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional Unemployment has come down slightly, but this does not [ ]the fact that it is still a major problem
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional Mr. Smith is not doing well; the doctor told us that several colds [ ]his health
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional The best way to deal with problems at home is to talk things out calmly and honestly and try to reach a(n) [ ]
【填空题】
open the door to,In advance,all at once,reap the benefits (of), make the most of,over time, get by, stand a chance (of),remind of, take pleasure in, Experts say our company is amazing in that sales have been increasing steadily [ ]
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away After 10 years of full-time training, she has,finally [ ] as a professional dancer.
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away [ ], what is the point in taking part in the competitive event if the result is only to prove how incompetent you are?,
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away Redecorating the house is a challenging task. It's necessary to [ ] the wallpaper first.
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away I never really had any problems with change. On the contrary, I welcome change [ ]
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away A lot of what we [ ] is made from raw materials which are not renewable
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away Megan and John realized that their house was too messy for a new baby, so they decided to [ ] their house before the baby was born
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away Jennifer couldn't [ ] her tears when she saw the sick children at a new blood cancer center in Virginia
【填空题】
make it, with open arms ,strip off,keep back, free of/ from ,after all,straighten up, throw away We want to give all children a world [ ] violence
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile Fortunately, the accident didn't [ ] many people, for there was little traffic at that hour.
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile She[ ] her ambition of becoming a fashion designer after years of hard work
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile They kept on trying their best to develop their business, but in such [ ]market competition, they had no Idea if success would come along one day
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile As music plays an important role in our life, many music teachers and educators [ ] taking up a musical instrument at a young age
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile This rule should be entirely clear in the minds of everyone and should not be misunderstood under any [ ]
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile My daughter was shy; she was afraid to ask questions,[ ] to questions in class,or talk with other children
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile I got from him only a letter, which was put on my office desk; [ ] to the receipt of this letter I have never heard from him
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile The duties to provide services for children in need are not [ ] to the local social services department
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile We pray that all nations be [ ] and that all people around the world live in peace
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional It was reported the president had [ ]to fight If war was necessary,even if it meant destroying his chances of re-election
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional I had to [ ] one of my email accounts as it was filled with junk mail
【填空题】
controversial,assess, resolve,decrease,alter,abandon,indicate,undermine,compromise, conventional Darwin's theory of evolution remains[ ] partly because it challenges the religious belief that God created man
【填空题】
advocate,involve,confine,respond,subsequent ,distinct ,intense, fulfill,circumstance, reconcile He suggested a small but [ ] improvement on our former plan; I really appreciate it.
欢迎使用我爱刷题
×
微信搜索我爱刷题小程序
温馨提示
×
请在电脑上登陆“www.woaishuati.com”使用