PROBLEM SET
题库
按难度与知识点筛选,找到适合的练习题。
题目列表
共 67434 题
A31288
小杨最近开始学习Python编程,老师说Python是一门高级语言。( )
Python-L2
较易
--
A31293
下图是Python程序执行后的输出。为实现其功能,横线处应填入代码是( )。lineNum = int(input())for i in range(1, lineNum + 1): for j in range(____________): print(j, end = " ") print()
Python-L2
较易
--
A31297
在Python代码中假设N为正整数,则下面代码能获得个位数的是( )。
Python-L2
较易
--
A31299
在Python中, print(5 // 2 + 5 % 3) 的输出是( )。
Python-L2
较易
--
A31300
在Python中,与 range(1, 10) 效果相同的是( )。
Python-L2
较易
--
A31301
在Python中,下列不可做变量的是( )。
Python-L2
较易
--
A31304
美丽数字
Python-L1
容易
--
A31305
小杨购物
Python-L1
容易
--
A31307
Python代码turtle.home()可以清除海龟绘图,且海龟将回到原点,海龟方向重置为初识方向。( )
Python-L1
容易
--
A31308
在Python代码中,不可以将变量命名为five-star,因为变量名中不可以出现-(减号)符号。( )
Python-L1
容易
--
A31309
在Python循环语句中,break通常与if语句配合使用。( )
Python-L1
容易
--
A31313
Python语句print(int(input()))能接收形如正整数、负整数和0输入,输入含字母或带小数点数,将导致错误。 ( )
Python-L1
容易
--
A31314
在Python中,表达式 10/2 和 10//2 的值相同,都是整数5。( )
Python-L1
容易
--
A31316
下面Python代码执行后输出的是( )。import turtlefor i in range(4): turtle.left(180) if i % 2 == 0: turtle.color("red") else: turtle.color("blue") if i < 2: turtle.circle(25) else: turtle.circle(50)
Python-L1
容易
--
A31318
为在Python Turtle中输出如下图形,代码横线处应填入( )。import turtlefor i in range(1,5): turtle._________ turtle.forward(100)
Python-L1
容易
--
A31320
下面Python代码执行后输出的是( )。N = 0for i in range(10): N += 1print(N)
Python-L1
容易
--
A31323
下面Python代码执行后,相关说法错误的是( )。 N = input()N = int(N)print(N % 10)
Python-L1
容易
--
A31326
在Python中,假设N为正整数10,则 print(N // 3 + N % 3) 将输出( )。
Python-L1
容易
--
A31327
Python表达式 10 - 3 * 2 的值是( )。
Python-L1
容易
--
A31328
在Python中,下列表达式错误的是( )。
Python-L1
容易
--