中国电子学会青少年软件编程等级考试标准 python 二级优质 word练习一、选择题1
下面哪个不是 Python 合法的标识符()A
int_3B
下列选项中,可以作为 Python 程序变量名的是()A
下列可以作为 python 变量名的是()A
已知字符串 a="python",则 a[-1]的值为()A
已知 a=6,b=-4,则 Python 表达式 a/2+b%2*3 的值为()A・3B
小林编写一段文件读写操作代码,文件如图,代码段如下:片垣本-□X丈件漏*目让)搭式 0 芝春也】皓肋凹IADistributedSystemBasedonPythorblfile=open('ceshi
txt','w')file
write("pythonisaprogramminglanguage
")file
close()file=open('ceshi
txt','r')print(file
read())该代码段运行后,输出的结果为()A
IADistributedSystemBasedonPython
pythonisaprogramminglanguage
IADistributedSystemBasedonPython
pythonisaprogramminglanguage
程序编译错误,不会输出结果7
下列选项中,属于 Python 输出函数的是()
random()B
print()C
sqrt()D
input()8•Python 不支持的数据类型有()