【填空题】
256、 Python标准库os.path中用来判断指定文件是否存在的方法是____。___)
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
exists(
解析
暂无解析
相关试题
【填空题】
257、 Python标准库os.path中用来判断指定路径是否为文件的方法是_____。___)
【填空题】
258、 Python标准库os.path中用来判断指定路径是否为文件夹的方法是____。___)
【填空题】
259、 Python标准库os.path中用来分割指定路径中的文件扩展名的方法是____。___)
【填空题】
260、 Python内建异常类的基类是______。___
【填空题】
261、 Python扩展库___支持Excel 2007或更高版本文件的读写操作。___
【填空题】
262、 Python标准库__中提供了计算MD5摘要的方法md5___
【填空题】
263、 表达式 len___ 的值为____。___
【填空题】
264、 表达式 ‘Hello world!’.count___ 的值为_。___
【填空题】
265、 表达式 ___+___ 的值为________。___)
【填空题】
266、 表达式 dict___) 的值为_______________________。___
【填空题】
267、 已知 x = ‘abcdefg’,则表达式 x[3:] + x[:3] 的值为_________。___
【填空题】
268、 一直 g = lambda x, y=3, z=5: x*y*z,则语句 print___) 的输出结果为_。___
【填空题】
269、 表达式 list___, [‘a’, ‘bb’, ‘ccc’])) 的值为____。___
【填空题】
270、 语句 x, y, z = [1, 2, 3] 执行后,变量y的值为____。___
【填空题】
271、 Python标准库____对Socket进行了二次封装,支持Socket接口的访问,大幅度简化了网络程序的开发。___
【填空题】
272、 Python扩展库____中封装了Windows底层几乎所有API函数。___
【填空题】
273、 线程对象的_方法用来阻塞当前线程,指定线程运行结束或超时后继续运行当前线程。___)
【填空题】
274、 Python用来访问和操作内置数据库SQLite的标准库是___。___
【填空题】
275、 用于删除数据库表test中所有name字段值为’10001’的记录的SQL语句为____________________。___
【填空题】
276、 Python扩展库______完美封装了图形库OpenGL的功能。___
【填空题】
277、 Python扩展库____和____提供了图像处理功能。___
【填空题】
278、 已知 x = [[1,3,3], [2,3,1]],那么表达式 sorted___ 的值为____________________________。___
【填空题】
279、 已知 x = [[1,3,3], [2,3,1]],那么表达式 sorted___) 的值为__________________________。___
【填空题】
280、 已知 x = [[1,3,3], [2,3,1]],那么表达式 sorted___) 的值为__________________________。___
【填空题】
281、 已知 x = {1, 2, 3},那么执行语句 x.add___ 之后,x的值为____。___
【填空题】
282、 已知 x = {1:1},那么执行语句 x[2] = 2之后,len___的值为__。___
【填空题】
283、 已知 x = {1:1, 2:2},那么执行语句 x[2] = 4之后,len___的值为__。___
【填空题】
284、 假设已从标准库functools导入reduce___ 的值为__。___
【填空题】
285、 假设已从标准库functools导入reduce___ 的值为__。___
【填空题】
286、 已知有函数定义 def demo___:return sum___,那么表达式 demo___ 的值为_、表达式 demo___ 的值为____。___
【填空题】
287、 已知列表 x = [1, 2],那么连续执行命令 y = x和 y.append___ 之后,x的值为__。___
【填空题】
288、 已知列表 x = [1, 2],那么连续执行命令 y = x[:] 和 y.append___ 之后,x的值为__。___
【填空题】
289、 已知列表 x = [1, 2],执行语句 y = x[:] 后,表达式 id___ == id___ 的值为_。___
【填空题】
290、 已知列表 x = [1, 2],执行语句 y = x 后,表达式 id___ == id___ 的值为_。___
【填空题】
291、 已知列表 x = [1, 2],执行语句 y = x 后,表达式 x is y 的值为_。___
【填空题】
292、 已知列表 x = [1, 2],执行语句 y = x[:] 后,表达式 x is not y 的值为_。___
【填空题】
293、 表达式 sorted___, 5)) 的值为_______________。___
【填空题】
294、 表达式 [i for i in range___ if i>8] 的值为______。___
【填空题】
295、 已知有列表 x = [[1, 2, 3], [4, 5, 6]],那么表达式 [[row[i] for row in x] for i in range___)] 的值为_________________。___
【填空题】
296、 执行语句 x,y,z = map___) 之后,变量y的值为_。___
推荐试题
【单选题】
Australia is one of the few countries ______ people drive on the left of the road.
A. which
B. that
C. where
D. on which
【单选题】
Sunday is the day ____ people usually don't go to work.
A. when
B. which
C. in which
D. that
【单选题】
____ you know, David has been well lately.
A. Which
B. As
C. What
D. When
【单选题】
The harder you study, _____ you will learn.
A. much
B. many
C. the more
D. much more
【单选题】
They got there an hour _____ than the others.
A. early
B. much early
C. more early
D. earlier
【单选题】
The grey building is the place where the workers live, and the white building is the place where the spare parts ____ .
A. are producing
B. are produced
C. produced
D. being produced
【单选题】
Once environmental damage ______, it takes many years for the system to recover.
A. is to do
B. does
C. had done
D. is done
【单选题】
We worked hard and completed the task ___.
A. in the time
B. on the time
C. ahead of time
D. before time
【单选题】
I didn't expect you to turn _____ at the meeting yesterday.
A. up
B. to
C. out
D. over
【单选题】
I like the teacher _______ classes are very interesting and creative.
A. which
B. who
C. whose
D. what
【单选题】
When Lily came home at 5 p. m. yesterday, her mother ______ dinner in the kitchen.
A. cooked
B. was cooking
C. cooks
D. has cooked
【单选题】
I don’t know the park, but it's _____ to be quite beautiful.
A. said
B. told
C. spoken
D. talked
【单选题】
Mike is better than Peter ____. swimming.
A. for
B. at
C. on
D. in
【单选题】
The young lady coming over to us ______ our English teacher; the way she walks tells us that!
A. must be
B. can be
C. would be
D. could be
【单选题】
Eggs, though rich in nourishments, have ______ of fat.
A. a large number
B. the large number
C. a large amount
D. the large amount
【单选题】
Neither John ______his father was able to wake up early enough to catch the morning train.
A. nor
B. or
C. but
D. and
【单选题】
Jane's dress is similar in design ______ her sister's.
A. like
B. with
C. to
D. as
【单选题】
His salary as a driver is much higher than ________.
A. a porter
B. is a porter
C. as a porter
D. that of a porter
【单选题】
_____ these honours he received a sum of money.
A. Except
B. But
C. Besides
D. Outside
【单选题】
Would you let ____ to the park with my classmate, Mum?
A. me go
B. me going
C. I go
D. I going
【单选题】
I have been looking forward to_____ from my parents.
A. hear
B. being heard
C. be heard
D. hearing
【单选题】
The manager will not _____ us to use his car.
A. have
B. let
C. agree
D. allow
【单选题】
_____ her and then try to copy what she does.
A. Mind
B. See
C. Stare at
D. Watch
【单选题】
Will you ___ me a favor, please?
A. do
B. make
C. bring
D. give
【单选题】
It's bad _____ for you to smoke in the public places where smoking is not allowed.
A. behavior
B. action
C. manner
D. movement
【单选题】
The computer system ____ suddenly while he was searching for information on the Internet.
A. broke down
B. broke out
C. broke up
D. broke in
【单选题】
If she wants to keep slim, she must make a ___ in her diet
A. change
B. turn
C. run
D. go
【单选题】
______ the War of Independence, the United States was an English colony.
A.
B. efore B. At
C. In
D. Between
【单选题】
A police officer claimed he had attempted to ____ paying his fare.
A. avoid
B. reject
C. refuse
D. neglect
【单选题】
While I was in the university, I learned taking photos, ______ is very useful now for me.
A. it
B. which
C. that
D. what
【单选题】
He is not seriously ill, but only a ____ headache.
A. obvious
B. delicate
C. slight
D. temporary
【单选题】
On average, a successful lawyer has to talk to several ____ a day.
A. customers
B. supporters
C. guests
D. clients
【单选题】
What is the train ____ to Birmingham?
A. fee
B. tip
C. fare
D. cost
【单选题】
You shouldn't ______ your time like that, Bob, and was cold yesterdak tonight.
A. cut
B. do
C. kill
D. kick
【单选题】
Both the kids and their parents ____ English, I think. I know it from their accent.
A. is
B. been
C. are
D. was
【单选题】
You had better ___ a doctor as soon as possible.
A. seeing
B. saw
C. see
D. seen
【单选题】
He opened the letter and it contained ___.
A. an important information
B. some important informations
C. many important information
D. some important information
【单选题】
He has been writing for 3 years, but being a writer is not his ___.
A. chance
B. choice
C. change
D. character
【单选题】
They have never heard any ___.
A. a customer complaint
B. the customer's complaints
C. customer's complaint
D. the customers' complaints
【单选题】
He is not a child ___.
A. no more
B. no longer
C. any much
D. any more