湖南省永州市全国计算机等级考试Python语言程序设计模拟考试(含答案).docxVIP

  • 3
  • 0
  • 约1.13万字
  • 约 21页
  • 2023-07-16 发布于河北
  • 举报

湖南省永州市全国计算机等级考试Python语言程序设计模拟考试(含答案).docx

湖南省永州市全国计算机等级考试Python语言程序设计模拟考试(含答案) 学校:________ 班级:________ 姓名:________ 考号:________ 一、单选题(30题) 1.以下属于Python机器学习领域第三方库的是()。 A.turtle B.numpy C.pygame D.mxnet? 2.在面向对象方法中,不属于”对象”基本特点的是()。 A.一致性 B.分类性 C.多态性 D.标识唯一性? 3.s =‘1234567890’,以下表示‘1234’的是()。 A.s[1:5] B.s[0:3] C.s[-10:-5] D.s[0:4]? 4.以下程序的输出结果是()。 d ={ } for i in range (26): d[chr(i+ord(“A”))] = chr((i + 13) % 26 + ord(“A”)) for c in “Python”: print( d. get( c, c), end =“ ”) A.Plguba B.Cabugl C.Python D.Cython? 5.以下代码的输出结果是()。 for s in”grandfather”: if s==”d”.or s==’h’: continue print(s,end=”) A.grandfather B.granfater C.grand D

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档