一.选择题(每题

3

分,共

30

分)

1.python

是一种(

)语言

A.

动物

B.

人类

C.

脚本编程

D.java

2.

应用

python3.7

编写完程序后,按(

)运行程序。

A.F1

B.F2

C.F4

D.F5

3.

新建脚本文件是在(

)菜单栏中新建。

A.File

B.Edit

C.Shell

D.Debug

4.

保存

python

文件是中(

)菜单栏中。

A.File

B.Edit

C.Shell

D.Debug

5.python

中的输出是用哪个代码(

A.import

B.print

C.if

D.else

6. python

中的循环是哪个代码(

A.import

B.for

C.os

D.else

7.python

要调用图形用户界面库时,用哪个代码(

A.import

B.print

C.Tkinter

D.else

8.python

中用(

)符号来表示注释。

A.@

B.

C.&

D.#

9.import turtle

是调用(

)库。

A.

文件

B.

图形化用户界面

C.

游戏

D.

绘图

10. import Tkinter

是调用(

)库。

A.

文件

B.

图形化用户界面

C.

游戏

D.

绘图

二.填空(每题

2

分,共

20

分)

1.python

语言中,转义字符“

\v

”的意义是纵向制表符;

\n

”的意义是

_______________

\t

”的意义是

_______________.

2.python

语言中,字符串格式化符号“

%s

”的意义是转化为字符串格式;

%d

________________________;

%o

___________________

3.python

语言中,用于条件判断的代码有

if

_______

________

等。

4.Turtle

库是一个点线面的简单图形库,

turtel.forward()

的意义是画笔向

前移动;

turtle.backward

()的意义是

______________;

turtle.ritht()

Logo

一站式 AI 云服务平台

更多推荐