下面代码的执行结果县 def greeting(args 1,*tupleArgs,**dictArgs): print(args1) print(tupleArgs) print(dictArgs) names=[’HTY’,’LFF’,’ZH’] in

admin2019-09-02  34

问题 下面代码的执行结果县
def greeting(args 1,*tupleArgs,**dictArgs):
print(args1)
print(tupleArgs)
print(dictArgs)
names=[’HTY’,’LFF’,’ZH’]
info={’schoolName’:’NJRU’,’City’:’Nanjing’}
greeting(’Hello,’,*names,**info)

选项 A、出错
B、无输出
C、[’HTY’,’LFF’,’ZH’]
D、Hello,
(’HTY’,’LFF’,’ZH’)
{’schoolName’:’NJRU’,’City’:’Nanjing’}

答案D

解析
转载请注明原文地址:https://kaotiyun.com/show/wD6p777K
0

相关试题推荐
最新回复(0)