【填空题】
251、 在Python中定义类时,与运算符“//”对应的特殊方法名为_____。___)
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
floordiv(
解析
暂无解析
相关试题
【填空题】
252、 对文件进行写入操作之后,_____方法用来在不关闭文件对象的情况下将缓冲区内容写入文件。___)
【填空题】
253、 Python内置函数___用来打开或创建文件并返回文件对象。___)
【填空题】
254、 使用上下文管理关键字____可以自动管理文件对象,不论何种原因结束该关键字中的语句块,都能保证文件被正确关闭。___
【填空题】
255、 Python标准库os中用来列出指定文件夹中的文件和子文件夹列表的方式是__。___)
【填空题】
256、 Python标准库os.path中用来判断指定文件是否存在的方法是____。___)
【填空题】
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 的值为_。___
推荐试题
【单选题】
The British government is characterized by a division of powers between three of the following branches with the exception of the .
A. A. judiciary
B. B. legislature
C. C. monarchy
D. D. executive
【单选题】
The importance of the British monarchy can be seen in its effect on .
A. A. passing the bills
B. B. advising the government
C. C. political parties
D. D. public attitude
【单选题】
British Cabinet works on the principle of .
A. A. collective responsibility
B. B. individual responsibility
C. C. defending the collectivism
D. D. defending the individuals
【单选题】
The main duty of the British Privy Council is to .
A. A. make decisions
B. B. give advice
C. C. pass bills
D. D. supervise the Cabinet
【单选题】
is the first African-American winner of the Nobel Prize for Literature.
A. A.Ralph Ellison
B. B. Tony Morrison
C. C. Richard Wright
D. D. James Baldwin
【单选题】
Of the following writers, is Not a Nobel Prize winner.
A. A. Alice Walker
B. B. Ernest Hemingway
C. C. William Faulkner
D. D. Eugene O’Neil
【单选题】
Of the following books, is NOT written by Ernest Hemingway.
A. A. The Sun Also Rises
B. B. The Sound and the Fury
C. C. A Farewell to Arms
D. D. For Whom the Bell Tolls
【单选题】
F. Scott Fitzgerald’s finest novel is , and its theme is about
A. A. The Great Gatsby, the American Dream
B. B. Tender is the Night, love
C. C. Tales of the Jazz Age, the loss of oneself
D. D. The Beautiful and the Damned, the evil of human nature
【单选题】
Of the following writers, is NOT included in the group of naturalists.
A. A. Stephen Crane
B. B. Frank Norris
C. C. Theodore Dreiser
D. D. Herman Melville
【单选题】
Of the following, is NOT characteristic of Mark Twain’s works.
A. A. colloquial speech
B. B. a sense of humor
C. C. a realistic view
D. D. an idealistic view
【单选题】
Of the following, is considered Herman Melville’s masterpiece.
A. A. The Last of the Mohicans
B. B. The Legend of Sleepy Hollow
C. C. Moby Dick
D. D. Daisy Miller
【单选题】
Of the following, is NOT Nathaniel Hawthorne’s work.
A. A. The Scarlet Letter
B. B. The House of the Seven Gables
C. C. The Marble Faun
D. D. Nature
【单选题】
is regarded as “the father of American literature”.
A. A. James Fennimore Cooper
B. B. Ralph Waldo
C. C. Thomas Jefferson
D. D. Washington Irving
【单选题】
Of the following writers, are from the Colonial and Revolutionary Periods.
A. A. Benjamin Franklin & Edgar Ellen Poe
B. B. Edgar Ellen Poe & Jonathan Edwards
C. C. Benjamin Franklin & Jonathan Edwards
D. D. Edgar Ellen Poe & Washington Irving
【单选题】
The National Day of the United States falls on .
A. A. June 4th
B. B. July 4th
C. C. June 14th
D. D. July 14th
【单选题】
Of the following, is NOT among the three major radio and TV networks in America.
A. A. the National Broadcasting System (NBS)
B. B. the Public Broadcasting Service (PBS)
C. C. the Columbia Broadcasting System (CBS)
D. D. the American Broadcasting System (ABS)
【单选题】
is sold especially to the upper or upper-middle class and it has a reputation for its serious attitude and great bulk.
A. A. The Washington Post
B. B. The New York Times
C. C. Los Angeles Times
D. D. New York Daily News
【单选题】
Of the following universities, has NOT cultivated any American President yet.
A. A. Harvard University
B. B. Massachusetts Institute of Technology
C. C. Princeton University
D. D. Yale University
【单选题】
To get a bachelor’s degree, all undergraduate students are required to do the following except .
A. A. attending lectures and completing assignments
B. B. passing examinations
C. C. working for communities
D. D. earning a certain number of credits
【单选题】
Of the following, is NOT the responsibility of the board of trustees in U. S. institutions.
A. A. choosing the president
B. B. establishing policies for administrators and faculty
C. C. approving budget and other financial project
D. D. decide which student to enroll
【单选题】
Of the following, are NOT among the categories of American higher education.
A. A. universities and colleges
B. B. research institutions
C. C. technical institutions
D. D. community colleges
【单选题】
Higher education in the United States began with the founding of
A. A. Yale University
B. B. Harvard University
C. C. Princeton University
D. D. New York University
【单选题】
Of the following subjects, are NOT offered to elementary school students.
A. A. mathematics and languages
B. B. politics and business education
C. C. science and social studies
D. D. music and physical education
【单选题】
Formal education in the United States consists of , secondary and higher education.
A. A. kindergarten
B. B. public
C. C. elementary
D. D. private
【单选题】
At present, U. S. exports account for of the world’s total.
A. A. 10%
B. B. 15%
C. C. 20%
D. D. 25%
【单选题】
is not one of the three giants in American automobile industry.
A. A. Ford
B. B. General Motors
C. C. Chrysler
D. D. American Motors
【单选题】
The following statements are all true except .
A. A. Agribusinesses reflect the big, corporate nature of many farm enterprises.
B. B. Agribusinesses maintain a balanced trade pattern between agricultural imports and exports.
C. C. Agribusinesses range from one-family corporations to multinational firms.
D. D. Agribusinesses include a variety of farm businesses and structures.
【单选题】
About of American crops are for export.
A. A. half
B. B. one third
C. C. one fourth
D. D. one fifth
【单选题】
President Johnson tried to build a “Great Society” by introducing various programs like the following except .
A. A. Medicare
B. B. Food Stamps
C. C. Education Initiatives
D. D. Unemployment Pension
【单选题】
The following inventions took place during the “second indThe following inventions took place during the “second industrial revolution” except .
A. A. typewriter
B. B. telephone
C. C. electric light
D. D. refrigerator
【单选题】
The first National Bank of the United States was established with the urge of .
A. A. George Washington
B. B. Thomas Jefferson
C. C. Andrew Jackson
D. D. Alexander Hamilton
【单选题】
Chartered companies were NOT granted the by the British King or Queen.
A. A. political authority
B. B. economic rights
C. C. judicial authority
D. D. diplomatic authority
【单选题】
The modern American economy progressed from to , and eventually, to .
A. A. colonial economy, handcraft economy, industrial economy
B. B. farming economy, handcraft economy, industrial economy
C. C. colonial economy, farming economy, industrial economy
D. D. handcraft economy, farming economy, industrial economy
【单选题】
America produces a major portion of the world’s products in the following fields except .
A. A. machinery
B. B. automobiles
C. C. ore
D. D. chemicals
【单选题】
The President is directly voted into office by .
A. A. all citizens of America
B. B. the citizens over 18 years old
C. C. electors elected by the voters
D. D. the senators and representatives
【单选题】
The Supreme Court is composed of justices.
A. A. six
B. B. seven
C. C. eight
D. D. nine
【单选题】
The terms for a Senator and Representative are and years respectively.
A. A. two, four
B. B. two, three
C. C. two, six
D. D. six, two
【单选题】
According to the Constitution, a candidate for President must be .
A. A. at least 35 years old
B. B. at least a 14 years’ resident of the United States
C. C. born in America
D. D. all of the above
【单选题】
The following except are all powers of the President.
A. A. vetoing any bills passed by Congress
B. B. appointing federal judges when vacancies occur
C. C. making laws
D. D. issuing executive orders
【单选题】
All the following except cannot make legislative proposal.
A. A. the Senator
B. B. the Representative
C. C. the Secretary of State
D. D. the President