已知有函数定义:defStudentInfo(name,country='中国',age=18):print('%s,%s,%d'%(name,country,age)

7 查阅

已知有函数定义:defStudentInfo(name,country='中国',age=18):print('%s,%s,%d'%(name,country,age))则下列函数调用中正确的是()。

A.StudentInfo('大卫','美国',20)

B.StudentInfo('大卫',,20)

C.StudentInfo('大卫',age=20)

D.StudentInfo(name='大卫','美国')

参考答案:

答案:StudentInfo('大卫','美国',20);StudentInfo('大卫',age=20)