2026年fr考试试题含答案解析.docxVIP

  • 0
  • 0
  • 约4.96千字
  • 约 9页
  • 2026-03-04 发布于中国
  • 举报

2026年fr考试试题含答案解析

姓名:__________考号:__________

题号

总分

评分

一、单选题(共10题)

1.以下哪个选项是关于函数定义的描述?()

A.函数必须返回一个值

B.函数可以没有参数

C.函数不能包含循环语句

D.函数不能包含条件语句

2.在Python中,如何打印变量a的内存地址?()

A.print(a)

B.print(id(a))

C.print(memory_address(a))

D.print(address(a))

3.以下哪个是Python中的不可变数据类型?()

A.列表(list)

B.字典(dict)

C.元组(tuple)

D.集合(set)

4.在Python中,如何将字符串hello转换为整数?()

A.int(hello)

B.str(int(hello))

C.int(str(hello))

D.int(hello,base=10)

5.在Python中,如何获取当前时间的时间戳?()

A.importtime;time.time()

B.importdatetime;datetime.datetime.now()

C.importcalendar;calendar.time()

D.

文档评论(0)

1亿VIP精品文档

相关文档