注意:此页面搜索的是所有试题
题目内容
(国家开放大学Python程序设计)
以下代码的运行结果为( )。
def example(country=.中国.,name):
print(.%s,%s.%(name,country))
example(.美国.,.张三.)
A.美国,张三
B.报错
C.张三,美国
D.张三,中国
def example(country=.中国.,name):
print(.%s,%s.%(name,country))
example(.美国.,.张三.)
A.美国,张三
B.报错
C.张三,美国
D.张三,中国
参考答案