1.Python是一门跨平台的脚本语言,Python规定了一个Python语法规则,实现Python语法的解释程序就成为Python的 ( )
2 python 用于科学计算和数据处理的包不包括()
A. numpy
B. scipy
C. pandas
D. pygame
3. Python安装扩展库常用的工具是()
A. pip
B. setup
C. conda
D. pyenv
4. list(map(str, [1, 2, 3]))的执行结果为()
A. [1, 2, 3]
B. [‘1’:1, ‘2’:2, ‘3’:3]
C. [‘1’, ‘2’, ‘3’]
D. [{‘1’, ‘2’, ‘3’}]
5.可以方便地安装、更新、卸载工具包,而且安装时能自动安装相应的依赖包,同时还能使用不同的虚拟环境隔离不同要求的项目是( )
A. Anaconda
B. scipy
C. Pip
D. pygame
6. python的基础网络编程是下列哪一项?( )
A. HTTP
B. UDP
C. TCP/IP
D. SOCKET网络编程
7. Python源文件经过编译后生成的pyc文件为 ( )
A. 源文件
B. 字节文件
C. 优化文件
D. 脚本文件
8. python中可以获取操作系统相关路径目录的模块是( )
A. pandas
B. os
C. logging
D. matplot
9. Python把在程序中用到的任何东西都称为 ( )
10. Python中最具灵活性的有序集合对象类型,以中括号来标注集合是 ( )
11. Python中控制流语句不包括( )
A. if语句
B. for语句
C. while语句
D.Case语句
12. 表达式 .join(asdssfff.split(sd)) 的值为()
A. assfff
B. asdssfff
C. sd
D. asd
13. Pandas中的数据结构中表示数据框的是( )
A. Series
B. DataFrame
C. Panel
D. Panel4D
14. 在matplotlib基础上提供三维绘图的功能的模块是( )
A. mpl_toolkits.mplot3d模块
B. imshow()
C. bar()
D. matplotlib.ticker模块
15.移动互联网物联网时代数据的最典型特点是( )
A.数据共享
B.数据事务一致性
C.数据量大
D.数据具有时序性
16. Python标准库中提供了计算MD5摘要的方法md5()是()
A. hash
B. hashlib
C. md5lib
D. hexdigest
17 在Python中已知x=([1],[2]),那么语句x[0].append(3)执行的结果是()
A. ([1, 3], [2])
B. ([1], [2], [3])
C. 执行报错
D. ([1, 2,3])
18. 在Python中python[-1]执行的结果是()
19. 测试网络中本机系统是否能到达 一台远程主机 ,常常用于测试网络的连通性的命令是 ( )
A. ping
B. netstat
C. ifconfig
D. ipconfig
20. 在Python中b=[1,2,3,4,5]则b[::2]执行的结果是()
A. [1,2,3,4,5]
B. [1,3,5]
C. [2,4]
D. [4,5]
21. 在Python中a={1,2,3,4},b={3,4,5,6,7,9}则 ab执行的结果是()
A. {1, 2, 3, 4, 5, 6, 7, 9}
B. {3, 4}
C. {1, 2}
D. True
22在Python中列出当前目录下是txt的文件名列表,则 写法正确是()
A. os.listdir( .,endswith( .txt) )
B. [item for item in os.listdir( . ) if item.endswith( .txt)]
C. [item for item.endswith( .txt) in os.listdir( . )]
D. os.system(ls -la |grep -i *.txt)
23. 在Python中psutil.cpu_count()获取数值是()
A. CPU逻辑数量
B. CPU物理核心
C. CPU空间大小
D. CPU在使用的个数
24. 在Python中 a=rPapayaWhip\foo则输入a执行后显示结果为()
A. PapayaWhip\foo
B. PapayaWhip\\foo
C. PapayaWhipfoo
D. rPapayaWhip\foo
25 在linux系统中所有内容都被表示为文件,组织文件的各种方法称为()
A. 文件目录
B. 文件系统
C. 目录管理
D. 磁盘管理
26. 已知 x = [1,2,3,4,5],那么执行语句 x[1::2] = sorted(x[1::2], reverse=True) 之后,x的值为()
A. [4, 2]
B. [1, 4, 3, 2, 5]
C. [2, 4]
D. [1, 2, 3, 4, 5]
27. 表达式 list(map(list,zip(*[[1, 2, 3], [4, 5, 6]]))) 的值为()
A. [[1: 4], [2: 5], [3: 6]]
B. [1, 2, 3, 4, 5, 6]
C. [[1, 4], [2, 5], [3, 6]]
D. [1, 4, 2, 5, 3, 6]
28. 假设re模块已导入,那么表达式re.findall((\d)\\1+, 33abcd112)的值为( )
A. [3, 1]
B. [3, 3]
C. [1, 1]
D. [1, 3]
29. 表达式 a + b 的值为( )
A. ab
B. [a, b]
C. [ab]
D. 执行报错
30. 下列不属于dataframe索引语法的是( )
A. .ix
B. .loc
C. .rloc
D. .iloc