青少年软件编程(Python一级)等级考试试卷(2021年3月)
Alt F4
Ctrl Q
按ESC键
exit()
6
6.0
8
8.0
IDLE
PyCharm
Visual Studio Code
WPS
>=
<=
==
=
print('hello!,2021年!')
print 'hello!,2021年!'
print"(hello!,2021年!)"
print("hello!,2021年!')
22
27
99
9
star5
star3star2
star2star3
star23
%
/
//
\\\\
2>3 and 3>2
4!=0 and 3 2>=5
3**2<8 or 3 2<5
not 20>=20
画笔颜色为粉色,画笔宽度为5
画笔颜色为黄色,画笔宽度为5
画布背景为粉色,画笔宽度为5
画笔颜色为粉色,画笔速度为5
turtle.goto(90,0) turtle.left(90)
turtle.left(90) turtle.goto(90,0)
turtle.goto(90,0) turtle.right(90)
turtle.right(90) turtle.goto(90,0)
画笔的初始坐标为(0,0)
turtle.color()可以设置画笔的颜色
画笔绘制的速度没有范围
turtle.fillcolor()设置绘制图形的填充颜色
n // 10
n % 10
(n-1) // 10 1
(n-1) % 10 1
Hello
I am Python
Hello
I am Python
语法错误
turtle.screensize("black")
turtle.fillcolor("black")
turtle.bgcolor("black")
turtle.pencolor("black")
1
0
True
False
==
*
and
abc=1
HelloWorld=1
1abc=1
abc_xyz=1
a >= a 5
a = 5
a == 5
a *= 5
前后加//
前后加'''
前后加***
前后加###
半径为180的扇形
半径为90的半圆
半径为90的圆形
半径为180的圆形
Python只可以在windows系统中使用
在Windows系统中编写的程序不可以在Linux或者IOS系统中打开
Python目前存在Python 2 和Python 3 两个版本,但并不完全兼容
32位的电脑系统可支持安装64位版本的Python软件
7
10.0
10
7.0
发表评论 取消回复