已知有函数定义:defStudentInfo(name,country='中国',age=18):print('%s,%s,%d'%(name,country,age))则下列函数调用中正确的是()。
已知有函数定义: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)
Tag:Python编程基础 大卫 美国
时间:2022-01-12 20:39:18