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

admin2019-09-02  31

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

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

答案D

解析
转载请注明原文地址:https://jikaoti.com/ti/ci50FFFM
0

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