选择题 共25道
判断题 共10道
编程题 共1道
关于比较运算符说法正确的是?
①!=表示为不等于,如果两个操作数不相等,则为False
②<=表示为小于等于,如果左边的数小于或等于右边的数,则为True
③若a=2,b=5则a!=b为True
分析下列程序,说法错误的是?
import turtle
turtle.color('blue')
turtle.fillcolor('yellow')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.forward(100)
turtle.color('red', 'aqua')
在初始状态下,执行以下命令后,turtle的坐标为?
turtle.forward(10)
turtle.left(90)
turtle.forward(20)
运行如下代码段,输出结果正确的是?
word1="o"
word2="n"
print(word2+word1)
Python = "3.5.2"
print(Python)
运行时会提示出错。
求长方形的面积与周长。
要求:
(1)程序开始运行后,输入长方形的长(a),然后再输入长方形的宽(b);
(2)程序会根据输入的数字给出长方形的面积和长方形的周长;
(3)输出长方形的面积和周长,并且注明是面积还是和周长。