题目内容

下列哪个标识符是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

创建函数可以使用关键字def或者DEF。

A. 对
B. 错

答案查题题库