题库首页 › 青少年软件编程(Python) › 题目 16523

自定义函数def weather(city,unit='C'),调用函数时参数传递正确的是哪个选项?( )

A:weather(unit='F', '北京')
B:weather('北京', unit='F')
C:weather(city='北京', 'F')
D:weather('北京', 'F)

正确答案:B

试卷来源:202509 青少年软件编程等级考试Python四级真题

本卷相关题目

在线做题 同科目题库