题目内容

创建函数使用的关键字是什么?

A. def
B. create
C. run
D. add

查看答案
更多问题

下列哪个标识符是Python中合法的函数名?

A. hello
B. def
C. if
D. continue

下列语句的输出结果是: def hello(): print('Hello')

A. 无输出
B. Hello
C. hello
D. 报错

下列语句的输出结果是: def hello(): print('Hello') hello()

A. 无输出
B. Hello
C. hello
D. 报错

下列哪些函数名在Python中是合法的?

A. print
B. run
C. hello
D. test

答案查题题库