中国电子学会青少年软件编程等级考试标准 python 一级 word 练习一、选择题1
有如下 Python 程序,当程序运行后输入 15000,则程序输出结果为()salary=float(input())ifsalaryb3
在 Python 中,算式 5+6*4%(2+8)结果为()A
已知 a=6,b=-4,则 Python 表达式 a/2+b%2*3 的值为()A
小林编写一段文件读写操作代码,文件如图,代码段如下:习咒凸时-了己爭本-□x文件旧堀肃山咨式口查看朗皓助凹I 人 DistributmdSystemonPython
Ifile=open('ceshi
txt','w')file
write("pythonisaprogramminglanguage
")file
close()file=open('ceshi
txt',T)print(file
read())该代码段运行后,输出的结果为()A
IADistributedSystemBasedonPython
pythonisaprogramminglanguage
IADistributedSystemBasedonPython
pythonisaprogramminglanguage
程序编译错误,不会输出结果6
如下 Python 程序段foriinrange(1,4):51study=“chinese"forjinrange(0,3):print("Python")语句 print("Python")的执行次数是()A
以下 python 程序段运行后,s 的值是()n=0s=0whiles