青少年软件编程(Python一级)等级考试试卷(2022年6月)
Check Module
Run Module
Python shell
任意一个都可以
(46-1) % 10 1
46 % 10
(46-1) // 10 1
46 // 10
/
\\
÷
%
①②
②③
③④
①④
在IDLE主窗口中,可以通过“File→New File”,打开一个新文件
在脚本式编程环境中,运行指令前需要先保存才可以运行
在交互式编程环境中,我们可以修改和保存文件
点开IDLE窗口,主窗口会显示当前安装Python的版本号
用户都可以使用Python,不需要支付费用
Python具有跨平台性,可以在不同类型的操作系统上运行使用
Python提供大量的内置对象和内置函数,使用时仅需调用即可实现
Python语言比较人性化,无需注重首行缩进等语法规则
10岁 60岁
12岁 52岁
5岁 60岁
8岁 67岁
2
5.5
5
9
True
7
"7"
False
11.0
14
14.0
10
a=int(input("请输入一个两位数"))\nb=a//10\nc=a\nprint(c*10 b)
a=int(input("请输入一个两位数"))\nb=a\nc=a//10\nprint(c*10 b)
a=int(input("请输入一个两位数"))\nb=a/10\nc=a//10\nprint(c*10 b)
a=int(input("请输入一个两位数"))\nb=a//10\nc=a\nprint(c b)
11
33
1122
22
int()
float()
input()
print()
80
40
20
0
执行clear()功能后,画笔最终位置一定是在画布中心
执行clear()功能后,画笔的颜色会变为白色
执行clear()功能后,海龟画布窗口会被清空
clear()功能和reset()功能的效果是完全一样的
>
<=
>=
> and ==
16.0
16
True
False
turtle.done()
turtle.home()
turtle.setup()
turtle.dot()
turtle.size(5)
turtle.pencolor("red")
turtle.size(5)
turtle.color("red")
turtle.pensize(5)
turtle.pencolor("red")
turtle.penwidth(5)
turtle.color("red")
print('banana' 'apple')
print('banana' - 'ana')
print('banana' * 100)
print('banana' str(6))
turtle.forward()
turtle.goto()
turtle.backward()
turtle.hideturtle()
t.left(90)
t.right(90)
t.left(180)
t.right(-90)
If
For
Else
None
==
*
and
<
发表评论 取消回复