- 0
- 0
- 约4.05千字
- 约 14页
- 2026-08-12 发布于福建
- 举报
第PAGE页共NUMPAGES页
2026年基础编程Python编程入门初级笔试模拟题
一、单选题(每题2分,共10题)
1.以下哪个选项不是Python的合法标识符?
A.`int32`
B.`3int`
C.`_value`
D.`class`
2.Python中,如何正确地注释一行代码?
A.`//Thisisacomment`
B.`#Thisisacomment`
C.`/Thisisacomment/`
D.以上都不对
3.在Python中,哪个关键字用于定义函数?
A.`func`
B.`function`
C.`def`
D.`define`
4.以下哪个Python数据类型是不可变的?
A.列表(List)
B.字典(Dictionary)
C.元组(Tuple)
D.集合(Set)
5.Python中,如何获取当前日期和时间?
A.`time.now()`
B.`datetime.now()`
C.`date.today()`
D.`current_time()`
6.在Python中,如何判断一个变量是否为空?
A.`ifvar==None`
B.`ifnotvar`
C.`ifvarisNone`
D.以上都对
7.以下哪个选项是Python
原创力文档

文档评论(0)