2026年Python编程入门练习题库Python语言基础与应用.docxVIP

  • 0
  • 0
  • 约3.11千字
  • 约 11页
  • 2026-06-23 发布于福建
  • 举报

2026年Python编程入门练习题库Python语言基础与应用.docx

第PAGE页共NUMPAGES页

2026年Python编程入门练习题库Python语言基础与应用

一、选择题(每题2分,共20分)

1.下列哪个语句在Python中是正确的注释方式?

A.//Thisisacomment

B.#Thisisacomment

C./Thisisacomment/

D.commentThisisacomment/comment

2.在Python中,如何表示一个整数类型的数据?

A.3.14

B.Hello

C.42

D.True

3.以下哪个是Python合法的变量名?

A.2ndNumber

B.first-name

C._myVariable

D.-age

4.Python中用于输入用户数据的函数是?

A.output()

B.print()

C.input()

D.read()

5.如何在Python中输出多行文本?

A.print(Line1\nLine2)

B.echo(Line1,Line2)

C.printf(Line1\nLine2)

D.println(Line1,Line2)

6.Python中列表的默认排序方法是?

A.sort()

B.arrange()

C.order()

D.sort_list()

7.以下

文档评论(0)

1亿VIP精品文档

相关文档