题目内容

在函数内部可以通过关键字( )来定义全局变量。

A. global
B. all
C. def
D. lambda

查看答案
更多问题

( )语句只要执行,就会直接结束函数的执行

A. break 语句
B. pass 语句
C. print 语句
D. return 语句

函数定义:def fun_bmi(person,height,weight=65):bmi=weight/(height*height)print(bmi)在调用该函数时,以下哪句代码存在语法错误?

A. fun_bmi("张三“,1.70,60)
B. fun_bmi("张三“,60)
C. fun_bmi(height=1.70,person='路人',weight=60)
D. fun_bmi(1.70,'路人',60)

n. something that is done in advance in order to prevent problems or to avoid danger

A. profession
B. precaution
C. portrait
D. property

n. an amount of money paid regularly by a government or company to sb. who is considered to be too old or too ill/sick to work

A. plaster
B. protein
C. pension
D. quotation

答案查题题库